• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Base64 format to binary converter ?

 
Ramesh Kumar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

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

Thank you
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ramesh Kumar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still not clear; doesn't the org.apache.commons.codec.binary.Base64 class do exactly what you're asking?
 
Ramesh Kumar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assumed that by "binary" you meant a byte[]; if you meant something else, please tell us what, exactly, that is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic