4
votes

I'm using Picasso library and Parse.com for my App I download the image via parse doc into Byte Array.

How can i show it into imageview with Picasso? Picasso doesn't accept Byte in load().

file.getDataInBackground(new GetDataCallback() {
     @Override
     public void done(byte[] data, ParseException e) {
           if (e == null) {

              Picasso.with(this)
                     .load(data)
                     .into(wallpaper);

            } else {

            }
     }
}

Thanks

1

1 Answers

-1
votes

Why don't you download the image using Picasso itself? You could pass the URL in .load(URL) and it'll download and display for you.

Or you can convert the byte[] to Bitmap and then pass it to .load(Bitmap).