wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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

Conversion of base64 encoded string to byte array

Naveen Morrise

Joined: Jun 06, 2006
Posts: 25
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...


marc weber

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
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074

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
I agree. Here's the link: http://aspose.com/file-tools
subject: Conversion of base64 encoded string to byte array
Similar Threads
Commons codec Base64 problem
How to encode a long into base64 and get it back?
Need light-weight base64 encoder and decoder for MIDlet
About creating string from Base64 encoded byte array and then invoking getBytes...
Problem in doing Base64 encoding