cancel
Showing results for 
Search instead for 
Did you mean: 

ZIP and PDF files through PI

Former Member
0 Kudos

Hi

we are working for a customer who wants to move ZIP files and possible PDF files through PI from a SAP system. PI has the version of 7.1

We where thinking of embedding the PDF files as base64 in an XML message and using PROXY to send this to PI

1) Can PI "extract" XML embedded PDF files from an XML message and for example place them in a folder as straight PDF files? Just by using the fileadapter perhaps?

2) Can PI zip the XML embedded PDF files into a ZIP "message" and then place them in a folder (as Q1)

3) When sending PDF as base64 - would that work even though that the PDF has some pictures (logo's ) in there?

Cheers

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

other solution used

Former Member
0 Kudos

hi,

is your file req any mapping transformation.

if u just want to plase file from one sys to another and u dont req any structure changes u can do this without using IR.

do not define any thing in IR and just do the config ..

the file ll be picked in same formate and be placed...

please check the link below

/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository

regards, navneet

Edited by: navneet sumit on May 4, 2009 8:20 AM

Former Member
0 Kudos

chk this link

[https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2072] [original link is broken] [original link is broken] [original link is broken];

for converting PDF files from XML

Regards,

Syed

former_member181985
Active Contributor
0 Kudos

>

> Hi

>

> we are working for a customer who wants to move ZIP files and possible PDF files through PI from a SAP system. PI has the version of 7.1

>

> We where thinking of embedding the PDF files as base64 in an XML message and using PROXY to send this to PI

> 1) Can PI "extract" XML embedded PDF files from an XML message and for example place them in a folder as straight PDF files? Just by using the fileadapter perhaps?

Yes Using Java Mapping. You know the XML structure well in hand. Read the XML tag which contains PDF base64 data and then decode to PDF binary data.

> 2) Can PI zip the XML embedded PDF files into a ZIP "message" and then place them in a folder (as Q1)

Yes Possible again using the same java mapping by adding extra zipping functionality.

> 3) When sending PDF as base64 - would that work even though that the PDF has some pictures (logo's ) in there?

yes it will work. The images or other textual data are part of PDF schema/document. So it doesnt matter as you are doing BASE64 encryption on PDF binary data.

For further help, Check my WIKI Section: [https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/sendingBinaryDatatoInboundPlainHTTPAdapterinXIandPI|https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/sendingBinaryDatatoInboundPlainHTTPAdapterinXIandPI]

Edited by: Praveen Gujjeti on May 4, 2009 10:56 AM

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hi

>

> we are working for a customer who wants to move ZIP files and possible PDF files through PI from a SAP system. PI has the version of 7.1

>

> We where thinking of embedding the PDF files as base64 in an XML message and using PROXY to send this to PI

>

> 1) Can PI "extract" XML embedded PDF files from an XML message and for example place them in a folder as straight PDF files? Just by using the fileadapter perhaps?

is there any reason to send it via proxy?

if you can simply place the file in a folder you can have the file adapter easily pick it up and send it to any location.

> 2) Can PI zip the XML embedded PDF files into a ZIP "message" and then place them in a folder (as Q1)

yes. Use the payloadzipbean

http://help.sap.com/saphelp_nw04/helpdata/en/45/da9358a1772e97e10000000a155369/content.htm

> 3) When sending PDF as base64 - would that work even though that the PDF has some pictures (logo's ) in there?

>

> Cheers

i dont see any potential problem in that.

also try application/pdf as your content type.

former_member200962
Active Contributor
0 Kudos
2) Can PI zip the XML embedded PDF files into a ZIP "message" and then place them in 
a folder (as Q1)

Yes the payload can be zipped and placed in a folder...

refer this blog: /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

3) When sending PDF as base64 - would that work even though that the PDF has 
some pictures (logo's ) in there?

Yes if you are successfull in converting a certain payload into base64 format then even if it has images they will be converted into base64 format....

Regards,

Abhishek.

Former Member
0 Kudos