aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "problem encoding and decoding base64 " Watch "problem encoding and decoding base64 " New topic
Author

problem encoding and decoding base64

Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
hi...
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 send...it 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem encoding and decoding base64
 
Similar Threads
java.lang.IllegalArgumentException: im == null!
Image width & height return negative
Java image and byte[] for J2ME and J2SE
Rotating a buffered image
rest webservice response problem when returning list