File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes problem encoding and decoding base64 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "problem encoding and decoding base64 " Watch "problem encoding and decoding base64 " New topic

problem encoding and decoding base64

Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
i am sending base64 string(image) to webservice which is then inserted into database...while retrieving from datbase iam decoding it into byte array using base64decoder

iam then resizing the byte array as

again iam encoding it to base64 string to get a smaller image then as

iam then sending this string to android...while sending single im facing no problem
but while i add these values to list and then gives an exception as

exception in android...please suggest what mite be wrong as iam able to send one image with the same value
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
getting this error before it says bad base64

03-26 11:02:51.513: D/skia(463): --- decoder->decode returned false
please try to help me get the solution over this
subject: problem encoding and decoding base64
Similar Threads
Rotating a buffered image
java.lang.IllegalArgumentException: im == null!
Image width & height return negative
Java image and byte[] for J2ME and J2SE
rest webservice response problem when returning list