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

Send PDF file as multipart form-data

  • 1.  Send PDF file as multipart form-data

    Posted Wed October 11, 2023 06:22 PM

    Product/components used and version/fix level:

    10.15

    Detailed explanation of the problem:

    Hello,
    I want to upload a PDF file to a REST API using pub.client.http as follows:

    The file has been downloaded previously in stream format.

    To perform the upload, I referred to topic #245230 to set up my service:
    service

    For information, I have set the content-type to multipart/form-data.

    I have the following error:
    com.wm.app.b2b.server.ServiceException: [ISC.0064.9401] Content does not match the content type: multipart/form-data

    Do you have any ideas to suggest to me?

    I thank you in advance.

    Error messages / full error message screenshot / log file:

    Question related to a free trial, or to a production (customer) instance?

    production


    #webMethods


  • 2.  RE: Send PDF file as multipart form-data

    Posted Mon October 16, 2023 06:10 AM

    hi @RCA ,
    Can you please refer the below tech article for your reference.

    Regards
    Vikash Sharma


    #webMethods


  • 3.  RE: Send PDF file as multipart form-data

    Posted Mon October 16, 2023 09:13 AM

    Hello,

    Thank you for your answer.
    Perfect! It helped me to solve my issue


    #webMethods