Skip to Content
avatar image
Former Member

ZIP and PDF files through PI

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • avatar image
    Former Member
    Apr 30, 2009 at 01:50 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 01, 2009 at 07:06 PM
    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.

    Add comment
    10|10000 characters needed characters exceeded

  • May 03, 2009 at 10:25 AM

    >

    > 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.

    Add comment
    10|10000 characters needed characters exceeded

  • May 04, 2009 at 04:36 AM

    >

    > 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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 05:07 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 06:17 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 29, 2009 at 02:39 PM

    other solution used

    Add comment
    10|10000 characters needed characters exceeded