Skip to Content
avatar image
Former Member

SAP HCI - MultiPart Form (Sending an file)

Hi Experts,

Anyone could answer me about the usage of HCI for Multipart form in HTTP Adapter, I checked that it is possible in SAP PI using HTTP_AEE Adapter (https://blogs.sap.com/2014/09/12/html-form-upload-using-http-plain-adapter-with-java-mapping/), but in HCI, I didn't find any topic about it, so How could I use a Multipart Form in SAP HCI with HTTP Adapter?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 08, 2017 at 10:45 AM

    Hi Bruno

    As far as I know, there is no built-in support for this scenario. You can parse the multipart/form-data format, though, or ideally find an existing library that does it for you. One such library is Apache Commons FileUpload, but it might take some wrangling to get it to work (at first glance it seems to assume servlets).

    When you find a solution, it will make a great blog :-)

    Regards,

    Morten

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you by your Help Morten

      As soon as I figure out how to do it, I'll do a blog in SCN.

      Regards,

      Bruno

  • avatar image
    Former Member
    Feb 09 at 02:53 AM

    Hi Bruno,

    I think you can use Decoder to implement your case.

    Best Regards

    Kevin

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 10 at 12:59 PM

    Hi,

    Please have a look at the following blog I wrote.

    https://blogs.sap.com/2018/02/09/the-marriage-between-form-data-and-sap-cloud-platform-integration/

    Kind regards, Pieterjan

    Add comment
    10|10000 characters needed characters exceeded