on 01-15-2013 1:29 PM
Hi All,
I have a requirement in which I have to perform the following.
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
Hi,
You should create a custom module to read the attachment and then convert it to base64 data.
PI7.0 does not support reading attachments in mapping pipeline step.
1) How to extract the zip files in SAP PI 7.0 sp18
Use payloadzip bean with unzip option. Search forum for more details on usage.
2) How to process both the files i.e XML & JPG
payloadzip bean will extract the documents as one main payload and remaining as attachments. You can also payload swap bean to ensure JPG as attachment. Use custom module to read the attachment and then formulate a fresh payload with XML and JPG base64 data.
3) How to convert JPG to Base64
Search forum, there are lot of documents available for this.
Regards,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
Thanks for your quick reply.
2) How to process both the files i.e XML & JPG
payloadzip bean will extract the documents as one main payload and remaining as attachments. You can also payload swap bean to ensure JPG as attachment. Use custom module to read the attachment and then formulate a fresh payload with XML and JPG base64 data.
Could you please tell little more about this as I didn't really understand the module part.
Thanks,
Iqbal
2) How to process both the files i.e XML & JPG
Search SCN for more details on standard module usage and custom module development/base64 conversion.
Regards,
Praveen Gujjeti
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.