title: reading image file from internal storage path in android
body: <p>I am trying to create Bitmap from the image file stored in the internal storage. I am using the following code and when I check the bitmap it always returns null. Kindly help and let me know what I am missing.</p>
  
  <blockquote>
    <p>Note : I checked the image path it exists and following I got in logcat
    /data/data/mypackagename/files/foldername/Images/MDSs2LJgLP.png</p>
  </blockquote>
  
  <p>Code :</p>
  
  <pre><code>if(catVo.getImage_path() != null)
  
  {
  
      File location = new File(catVo.getImage_path());
  
                              FileInputStream fi = new FileInputStream(location.getAbsoluteFile());
  
      Bitmap bitmap = BitmapFactory.decodeStream(fi);                                         
      //Bitmap bitmap = BitmapFactory.decodeFile(path);   
      categoryImage.setImageBitmap(Utils.getRoundedBitmap(bitmap));
  
  }
  </code></pre>