Skip to main content

base64 decode

3 replies [Last post]
boopalanm
Offline
Joined: 2008-12-24

Hi all,

i have a image in Base64 format, i want to decode it into image to dispaly
is there any standard code available to convert Base64 format into Byte[] or image.

regards
boopalan

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
carsamba55
Offline
Joined: 2010-12-16

Years ago I worked on a project with a soap protocol over a http connection and authentication. I had to decode an image which was encoded in Base64 algorithm.
Well I used ksoap2 (for the soap protocol), which has 2 methods of decoding:
byte[] byteArray = Base64.decode(String s);
void method Base64.decode(String s, OutputStream out);
You find the methods in this package: org.kobjects.base64.Base64 (if it didnt change)
sourceforge.net/projects/ksoap2/

shankar_vn
Offline
Joined: 2009-11-03

Hi,
I have the same requirement. Server sends the image in Base64 encoded form.
How can i decode it and convert it into LWUIT Image Object.
Thanks in advance.

shankar_vn
Offline
Joined: 2009-11-03

Hi,
I have the same requirement. Server sends the image in Base64 encoded form.
How can i decode it and convert it into LWUIT Image Object.
Thanks in advance.