This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 214
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: 214
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: problem encoding and decoding base64
It's not a secret anymore!