Skip to Content

How to send a file using HTTP Post


I would like to transmit a file to a remote web site using HTTP call atom and the post method.

Anyone knows what has to be set in the payload?

it is the file in a binary format or the file path (returns an error for me)?

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 17, 2015 at 01:44 PM

    Hi Damien,

    You could try to handover a file in the payload by pltype "bin" and using the root tag <bfa:io>.

    <call xmlns="">

    <query id="pdf" value="pdf"/>







    <bfa:io xmlns:bfa="" pltype="bin">





    <par id="httpheader.Content-Type" value="application/bin"/>

    <par id="htta.returnpltypeforce" value="application/bin"/>

    <par id="htta.returnpltypedefault" value="application/bin"/>



    In my test scenario, I'm reading a local *.pdf file and hand it over via http post call towards another B1i.

    The receiver stores the handed over pdf file on it's loacal file system.

    Best regards


    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Bastian,

      I still have an error. It seems that the HTTP header is not correct.

      The Partner returns the following error:

      Invalid HTTPContent instance provided.It does not have a multipart content-type header with a boundary parameter.

      So I think that I have to send a HTTP call with a content-type multipart/form-data and a content-type boundary.

      Is it possible with B1i ?

      Thank you.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.