Receiving multipart multipart/form-data through REST resource in webMethods

Hello All,

I am actually building a flow to receive attachments (image files) through REST in webMethods. I have created a REST resource post and as input contentStream. I received the stream and save it to a file on the disk.

The issue is that when calling the REST resource through SOAPUI with a POST and media type multipart/form-data. I get the file created but the image cannot be opened.

The start of the image file contains for example the below:

------=_Part_28_1854984910.1486552054880
Content-Type: image/jpeg; name=go.jpg
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name=“go.jpg”; filename=“go.jpg”

and the end contains:

------=_Part_28_1854984910.1486552054880–

When i send throug SOAP using media type image/jpeg the image is received and saved correctly and can be open afterwards.

I want to receive through my rest service the attached image files and media type multipart/form-data.

Please help.

Regards,
Lutchumaya

Working on the same issue, did you get any further ?

Any luck on this? i am facing same issue

here is the fix: