Base64 sting which is encoded tiff image is not able to get the Bitmap in android

51 Views Asked by At

I have Base64 string which is .TIFF formatted image encoded. Trying to decode and getting the bitmap in Android, but getting the null bitmap. Following is the code which i am using to get the bitmap

val imageBytes = Base64.decode(base64EncodedTiffImageStr, Base64.DEFAULT)
val bitmap = BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.size)

I am expecting bitmap of tiff image with above code

0

There are 0 best solutions below