-1

How to convert a byte stream to a image file and show the converted image to the application user.

The byte stream is return to my application by the client web service.

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
Shalika
  • 1,457
  • 2
  • 19
  • 38

1 Answers1

0

use this method..

public Bitmap decodeBase64(String input) 
{
    byte[] decodedByte = Base64.decode(input, 0);
    return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length); 
}
Mehtab Ahmed
  • 499
  • 3
  • 16