Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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