IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

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

  • 1.  Receiving multipart multipart/form-data through REST resource in webMethods

    Posted Wed February 08, 2017 07:37 AM

    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


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Receiving multipart multipart/form-data through REST resource in webMethods

    Posted Wed November 01, 2017 07:03 PM

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


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Receiving multipart multipart/form-data through REST resource in webMethods

    Posted Wed October 09, 2019 03:16 AM

    Any luck on this? i am facing same issue


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Receiving multipart multipart/form-data through REST resource in webMethods

    Posted Thu October 10, 2019 03:40 AM

    here is the fix:


    #webMethods
    #Integration-Server-and-ESB