title: Picasso Image in Database
body: <p>I have a simple question. How can I save Picasso image (that loads successfully from json) into database. I want to convert it into a bitmap if it possible, or is there another way to save it?
  I tried this method for drawable images and its work perfectly.</p>
  
  <p>My code:</p>
  
  <pre><code>public static byte[] imageViewToByte(ImageView image) {
      Bitmap bitmap = ((BitmapDrawable) image.getDrawable()).getBitmap();
      // Bitmap bitmap=(BitmapDrawable)image.getI);
      ByteArrayOutputStream stream = new ByteArrayOutputStream();
      bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
      byte[] byteArray = stream.toByteArray();
      return byteArray;`.   
  }
  </code></pre>