Skip to content Skip to sidebar Skip to footer

How Can I Convert Base64 To Bitmap In Android

I want to take a byte array decoded from base64 and show it on an ImageView in Android. I fetch the byte array from the database: byte[] blob = c.getBlob(1); //I do this to

Solution 1:

The data you posted, seems to be corrupted. Decoding it (using the base64 command line utility`) produces something that looks like a PNG file, but not really:

$ base64 -d input.txt > output.png
$ file output.png 
output.png: PNG image, 805314562 x 284378236, 0-bit grayscale,
$

Post a Comment for "How Can I Convert Base64 To Bitmap In Android"