Skip to Content
1

SAP HCI - MultiPart Form (Sending an file)

Mar 07, 2017 at 12:58 PM

212

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Morten Wittrock Mar 08, 2017 at 10:45 AM
1

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0
Kevin Guo
Feb 09 at 02:53 AM
0

Hi Bruno,

I think you can use Decoder to implement your case.

Best Regards

Kevin

Share
10 |10000 characters needed characters left characters exceeded
Pieterjan De Schrijver Feb 10 at 12:59 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded