title: Loading Images With Picasso From The Internal Storage
body: <p>I saved a few JPEG images into the phones storage and I want to load the using picasso into an ImageView. I'm having trouble with it though, whatever I try I just can't load the image, the ImageView end up being blank.</p>
  
  <p>Here's how I save and retrieve the images:</p>
  
  <pre><code> private void saveImage(Context context, String name, Bitmap bitmap){
      name=name+".JPG";
      FileOutputStream out;
      try {
          out = context.openFileOutput(name, Context.MODE_PRIVATE);
          bitmap.compress(Bitmap.CompressFormat.JPEG, 80, out);
          out.close();
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  
  
  private Bitmap getSavedImage(Context context, String name){
      name=name+".JPG";
      try{
          FileInputStream fis = context.openFileInput(name);
          Bitmap bitmap = BitmapFactory.decodeStream(fis);
          fis.close();
          return bitmap;
      }
      catch(Exception e){
          e.printStackTrace();
      }
      return null;
  }
  </code></pre>
  
  <p>As you can see the returned image is a bitmap, how can I load it into a imageview using picasso?
  I know I can load the bitmap into an image like this:</p>
  
  <p><code>imageView.setImageBitmap(getSavedImage(this,user.username+"_Profile"));</code></p>
  
  <p>But I have a class which using picasso rounds up the image(users profile photo) so I need to load it with picasso.</p>