Android: Using Base64 To Encode An Image To String
I downloaded the Base64.java from here: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/util/Base64.java which contains method
Solution 1:
Well, if you want to send the encoded image to your server, you should encode it into a String
:
byte[] imageBytes = yourByteArray;
String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);
Post a Comment for "Android: Using Base64 To Encode An Image To String"