This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 14279
    
  21

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 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Conversion of base64 encoded string to byte array