This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Decode base64 string to an image(pdf, png, ....)

 
Rohit Borse
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wanted to decode base64 string to an image(pdf,png,....)

Originally, image type (pdf, png,...) is getting encoded into base64 file in SOAP response as below



I am trying to decode value from Image body to pdf or png.

Please suggest a script for this.

Again, I need help for generating images if there exists more than 1 image parts in an xml response as below:





Thanks
Rohit
 
Elchin Asgarli
Ranch Hand
Posts: 222
Chrome Eclipse IDE Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Apache Commons Codec library that has base64 decoder and encoder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic