This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
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: 41624
    
  55
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?


Ping & DNS - my free Android networking tools app
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: 41624
    
  55
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: 41624
    
  55
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://aspose.com/file-tools
 
subject: Base64 format to binary converter ?