This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Base64 format to binary converter ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Base64 format to binary converter ?" Watch "Base64 format to binary converter ?" New topic
Author

Base64 format to binary converter ?

Ramesh Kumar
Ranch Hand

Joined: Oct 29, 2008
Posts: 42
HI

can anyone help me to convert base64 String format to binary format???

Thank you


SCJP,OCA
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35446
    
    9
I pointed you to the Apache Commons Codec library in some other topic; did you encounter problems getting that to work? If so, what was it?


Android appsImageJ pluginsJava web charts
Ramesh Kumar
Ranch Hand

Joined: Oct 29, 2008
Posts: 42
i have done it in some other way . but now i am in a situation to convert that base64 to binary format. so that i have raised this issue ??
sorry i am not clear

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35446
    
    9
Still not clear; doesn't the org.apache.commons.codec.binary.Base64 class do exactly what you're asking?
Ramesh Kumar
Ranch Hand

Joined: Oct 29, 2008
Posts: 42
yes i am clear .and the Base64.decode will return the byte[]
and then i have to convert that byte[] to binary
is it , right ?
will it do a right conversion ???


thank you
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35446
    
    9
I assumed that by "binary" you meant a byte[]; if you meant something else, please tell us what, exactly, that is.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Base64 format to binary converter ?
 
Similar Threads
Using Apache Commons Codec
Embedded document in XML
A question regarding saving jpgs into text files.
Encoding base64 to binary
Embed image binary in XML