title: BlackBerry create bitmap from path
body: <p>After taking a picture in my app I want to get the image (by it's path).</p>
  
  <p>I see lots of examples on how to get an image, the only problem is that it no longer is possible doing it by using Connector.open() since Connector is deprecated now.</p>
  
  <p>What to use instead?</p>
  
  <pre><code>conn = (FileConnection)Connector.open("file:///SDCard/BlackBerry/pictures/" + picture);
  
  try {
           InputStream input = null;
           input = fconn.openInputStream();
  
           int available = 0;
           available = input.available();
           int fSz = (int)fconn.fileSize();
           byte[] data = new byte[fSz];
  
           input.read(data, 0, fSz);
           image = EncodedImage.createEncodedImage(data,0,data.length);
           bkBitmap = image.getBitmap();                
  } catch(ControlledAccessException e) { 
           pLog = "*** Problem Accessing image file:" + e;
           EventLogger.logEvent( GUID, pLog.getBytes() );                                                                                
  }
  </code></pre>
  
  <p>Thanks!</p>