2

I want to load base64 encode image using picsso lib.

mImage=(ImageView) findViewById(R.id.imageload_image);
Picasso.with(this).load("http://i.imgur.com/DvpvklR.png").into(mImage);

above code work fine but when i change url

https://bma8.officebrain.com/web/binary/image?model=mail.group&field=image_small&id=1

Can not load image in imageview.

Is there another way to load image?

Please help me.

Hemantvc
  • 2,111
  • 3
  • 30
  • 42

2 Answers2

0

You need to intercept the answer and change it, try this solution click

Community
  • 1
  • 1
Marlen
  • 146
  • 8
-3

Try

byte[] decodedString = Base64.decode(strBase64, Base64.DEFAULT);
Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length); 
image.setImageBitmap(decodedByte);
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
Akash Moradiya
  • 3,318
  • 1
  • 14
  • 19