How to use binary data in Http Request

I am new to n8n and not able to figure out how to implement the following using Http Request as it uses binary input:

curl -v -H “Accept: application/xml” --form input=@/data/References/Zotero/storage/3F5EDE5Z/test.pdf host.docker.internal:8070/api/processHeaderDocument

There are no problems execute the curl in the docker container.

Thanks in advance,

Magnus

  1. Enable Send Body
  2. Select Body Content Type: “Form-Data”
  3. Set the Parameter Type to “n8n Binary File”
  4. Fill in the Name - maybe this is “input”… forgot how curl names form parts
  5. Fill in the Input Data Field Name (e.g. “data” - literal name, not an expression)
    • Note: This means the binary item, usually named “data,” must be present in “input” node in the workflow (i.e. the one immediately previous to the HTTP Request node).

Alternatively, you might need to just select Body Content Type: "n8n Binary File` and send only that (not wrapped in form-data format). It depends on what the server is expecting.

Hi Guys. Im pretty new at this could use some help. Im trying to do something similar. pass binary through but not outputting right. When i generate a pdf its showing as data and view/download. I cant use it to the next node??! Thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.