Hi,

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

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

Java Code:
<ns1:Label>
   <ns1:Name>Label01</ns1:Parts>
   <ns1:Parts>
      <ns1:DocumentPartSequenceNumber>1</ns1:DocumentPartSequenceNumber>
      <ns1:Image>HOJBAAAElFTkSuQmCC.....</ns1:Image>
   </ns1:Parts>
</ns1:Label>
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:

Java Code:
<ns1:Label>
   <ns1:Name>Label01</ns1:Parts>
   <ns1:Parts>
      <ns1:DocumentPartSequenceNumber>1</ns1:DocumentPartSequenceNumber>
      <ns1:Image>HOJBAAAElFTkSuQmCC.....</ns1:Image>
   </ns1:Parts>
</ns1:Label>
<ns1:Label>
   <ns1:Name>Label02</ns1:Parts>
   <ns1:Parts>
      <ns1:DocumentPartSequenceNumber>1</ns1:DocumentPartSequenceNumber>
      <ns1:Image>dfdJBAAAElFTkSuQmCC.....</ns1:Image>
   </ns1:Parts>
</ns1:Label>


Thanks
Rohit