# Send binary file in the http request issue

**URL:** <https://community.n8n.io/t/send-binary-file-in-the-http-request-issue/62095>\
**Category:** Questions\
**Tags:** http-request\
**Created:** [November 17, 2024, 6:41am UTC](https://community.n8n.io/t/send-binary-file-in-the-http-request-issue/62095 "2024-11-17T06:41:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![scropion86](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/scropion86/32/33475_2.png) [@scropion86](https://community.n8n.io/u/scropion86)\
**Post date:** [November 17, 2024, 6:41am UTC](https://community.n8n.io/t/send-binary-file-in-the-http-request-issue/62095/1 "2024-11-17T06:41:57Z")

</div>

Hello i am trying to send an http request with a text file as binary

here is the curl which works on my PC

```auto
curl --location 'https://api.Domain.com/api/operator/claim-bd?toVerify=true' \
--header 'sec-ch-ua-platform: "Windows"' \
--header 'Authorization: JWT XXXXXXXXXX' \
--header 'Referer: https://Domain.com/' \
--header 'distributorId: 1' \
--header 'timeZone: Asia/Riyadh' \
--header 'sec-ch-ua: "Chromium";v="130", "Microsoft Edge";v="130", "Not?A_Brand";v="99"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'fileType: vouchers' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' \
--header 'Accept: application/json, text/plain, */*' \
--header 'DNT: 1' \
--form 'file=@"/C:/Users/username/Desktop/file.txt"'

```

and this works fine on postman but not in N8N  
here is my flow

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/2/b26bb379d9fe1e08a923c2e0a5ea83afab374446.png)

and here is my convert to file

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/5/c/5ce127e1b89988d962d02b3521af618a27cb8df9.png)

and here is my last http request which is failing

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/f/8fafd0ca72b8b3bdcc17da2ea3f969a0f4937b68.png)

another failing attempt

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/7/5/755af02c495d2136ecb315c30e6a8742612d7b13.png)

is there is any suggestion on how to resolve this issue?

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [November 17, 2024, 6:41am UTC](https://community.n8n.io/t/send-binary-file-in-the-http-request-issue/62095/2 "2024-11-17T06:41:58Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [November 19, 2024, 9:54am UTC](https://community.n8n.io/t/send-binary-file-in-the-http-request-issue/62095/3 "2024-11-19T09:54:32Z")

</div>

Hi @scropion86

You’re almost there 🙂

You need to put `data` as the fieldname of the binary file in the `Input Data Field Name` (no expression)

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/a/6/a69095f2372aa4a474a4fbef2b0704185e837e4c.jpeg)

---

<div class="post-metadata">

**Author:** ![scropion86](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/scropion86/32/33475_2.png) [@scropion86](https://community.n8n.io/u/scropion86)\
**Post date:** [November 19, 2024, 2:00pm UTC](https://community.n8n.io/t/send-binary-file-in-the-http-request-issue/62095/4 "2024-11-19T14:00:34Z")

</div>

i already have tried this but it will not work since there is another node in the middle.

even after modifying it still not working and asks to contact the customer support.

as per the backend engineer this is due that no file received

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/f/ffe66713904ed69e20567f510a7e2671ea6ddaca.png)

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [November 19, 2024, 2:18pm UTC](https://community.n8n.io/t/send-binary-file-in-the-http-request-issue/62095/5 "2024-11-19T14:18:08Z")

</div>

Hi @scropion86

Ah, sorry, yes I missed that. In this case you can use a merge node to get the binary field “across”.

See here for an example

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [February 17, 2025, 2:18pm UTC](https://community.n8n.io/t/send-binary-file-in-the-http-request-issue/62095/6 "2025-02-17T14:18:18Z")

</div>

Closed on February 17, 2025, 2:18pm UTC

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