This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Conversion of base64 encoded string to byte array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Conversion of base64 encoded string to byte array" Watch "Conversion of base64 encoded string to byte array" New topic
Author

Conversion of base64 encoded string to byte array

Naveen Morrise
Greenhorn

Joined: Jun 06, 2006
Posts: 25
Hi,
I need to test image which is available in base64 encoded string.
I need to decode into byte array.

If any once can help me out in this then it would be great.

Hope will get some response ASAP and thanks in advance...

Naveen


Naveen
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

I think this topic is a bit advanced for the beginners forum, so I'm promoting it to the intermediate forum.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

The open source Apache Jakarta Commons Codec library contains a Base64 encoder and decoder which you could use.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
 
subject: Conversion of base64 encoded string to byte array
 
Similar Threads
How to encode a long into base64 and get it back?
About creating string from Base64 encoded byte array and then invoking getBytes...
Problem in doing Base64 encoding
Need light-weight base64 encoder and decoder for MIDlet
Commons codec Base64 problem