Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to unzip the file and convert into base64

Hi All,

I have a requirement in which I have to perform the following.

  • PI will receive a Zip file which contains 2 files (XML & JPG)
  • I need to convert the JPG into base64 and send the information to iDoc along with the XML information

Question

1) How to extract the zip files in SAP PI 7.0 sp18

2) How to process both the files i.e XML & JPG

3) How to convert JPG to Base64

Souce Structure

abc

def

jhi

Target Structure

abc

def

jhi

imagecode (base64)

Can somebody please guide me how to fulfil this requirement.

Thanks,

Iqbal

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question