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:
Content-Type: image/jpeg; name=go.jpg
Content-Disposition: form-data; name=“go.jpg”; filename=“go.jpg”
and the end contains:
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.