Answers for "Android Bitmap to Base64 String"

0

Android Bitmap to Base64 String

String encoded = Base64.encodeToString(byteArray, Base64.DEFAULT);
Posted by: Guest on June-03-2021
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 "Android Bitmap to Base64 String"

Browse Popular Code Answers by Language