Answers for "how to convert a bitmap to a base64 string java android"

1

convert base64 to bitmap android

byte[] decodedString = Base64.decode(encodedImage, Base64.DEFAULT);
Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);
Posted by: Guest on September-17-2020
0

Android Bitmap to Base64 String

ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();  
bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
byte[] byteArray = byteArrayOutputStream .toByteArray();
Posted by: Guest on June-03-2021

Code answers related to "how to convert a bitmap to a base64 string java android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language