Monday, July 22, 2013

Convert binary image to image file

String strBinary = "binary data";
byte[] imageBytes= Base64.decodeBase64(strBinary.getBytes());
InputStream in = new ByteArrayInputStream(imageBytes);
Bitmap b = BitmapFactory.decodeStream(in);

No comments:

Post a Comment