String base64String = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAA...";
String base64Image = base64String.split(",")[1];
byte[] decodedString = Base64.decode(base64Image, Base64.DEFAULT);
Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);
imageView.setImageBitmap(decodedByte);
Last active
August 14, 2020 10:19
-
-
Save WrathChaos/80cd7e613cd7577dae9326e3cd75e4be to your computer and use it in GitHub Desktop.
How to convert Base64 String to Bitmap? https://freakycoder.com/android-notes-44-how-to-convert-base64-string-to-bitmap-53f98d5e57af
Back-end (JVM) Internal error: wrong bytecode generated for static initializer base64 coverter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! 👍