Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Android Bitmap to Base64 String

ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();  
bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
byte[] byteArray = byteArrayOutputStream .toByteArray();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Android #Bitmap #String
ADD COMMENT
Topic
Name
3+2 =