title: Loading big image to bitmap in android
body: <p>Hi i am using below code to load images from sdcard, it is running correctly,</p>
  
  <pre><code>Bitmap picture=BitmapFactory.decodeFile("/sdcard...");
  </code></pre>
  
  <p>or  </p>
  
  <pre><code>Bitmap picture= BitmapFactory.decodeByteArray(byte[]..);  
  </code></pre>
  
  <p>The <code>byte[]</code> array contains bytes read from sdcard by using <code>FileInputstream</code> and is not null. Both of above codes work fine. The problem is that they dont work for images that are larger e.g. i have an image of 1.8 mb in size. My app crashes while decoding the image. Any method used for larges image fails.
  Any solution plz thakns.</p>