# Pass binary data between workflows

**URL:** <https://community.n8n.io/t/pass-binary-data-between-workflows/57495>\
**Category:** Questions\
**Created:** [October 13, 2024, 8:29pm UTC](https://community.n8n.io/t/pass-binary-data-between-workflows/57495 "2024-10-13T20:29:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucBerge](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/lucberge/32/33725_2.png) [@LucBerge](https://community.n8n.io/u/LucBerge)\
**Post date:** [October 13, 2024, 8:29pm UTC](https://community.n8n.io/t/pass-binary-data-between-workflows/57495/1 "2024-10-13T20:29:37Z")

</div>

## Describe the problem/error/question

I have a workflow (child) with an “Execute Workflow Trigger” that take in input a binary data, it process it and outputs a result.  
I call this workflow from another workflow (parent) and pass it a binary data.

The binary data is not present in the child workflow.

Why ?  
How to pass binary data between two workflows ?

## Alternative solution

I could:

- Write the file on the disk
- Call the child workflow with the path to the file
- Read the file

But I want to avoid that.

---

<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:** [October 13, 2024, 8:29pm UTC](https://community.n8n.io/t/pass-binary-data-between-workflows/57495/2 "2024-10-13T20:29:38Z")

</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:** ![ihortom](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ihortom/32/11473_2.png) [@ihortom](https://community.n8n.io/u/ihortom)\
**Post date:** [October 14, 2024, 4:54am UTC](https://community.n8n.io/t/pass-binary-data-between-workflows/57495/3 "2024-10-14T04:54:13Z")

</div>

Hey @LucBerge , check out this post for the available solutions, [[onedrive via Graph HTTP] why binary don't upload if not exactly previous node? - #2 by ihortom](http://community.n8n.io/t/onedrive-via-graph-http-why-binary-dont-upload-if-not-exactly-previous-node/56438/2).

---

<div class="post-metadata">

**Author:** ![LucBerge](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/lucberge/32/33725_2.png) [@LucBerge](https://community.n8n.io/u/LucBerge)\
**Post date:** [October 14, 2024, 10:09am UTC](https://community.n8n.io/t/pass-binary-data-between-workflows/57495/4 "2024-10-14T10:09:59Z")

</div>

Hello @ihortom, thank you for the answer.

In the post, you give workarounds : fine. So the best option for me would be to convert the file to base64 in order to pass it as a string. But in my case the binary data exists in the previous node. So why isn’t it visible in the child workflow ?

What technically prevents a user from getting the binary data from previous node with `{{ $('Step name').item.binary }}` ?

---

<div class="post-metadata">

**Author:** ![ihortom](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ihortom/32/11473_2.png) [@ihortom](https://community.n8n.io/u/ihortom)\
**Post date:** [October 14, 2024, 1:28pm UTC](https://community.n8n.io/t/pass-binary-data-between-workflows/57495/5 "2024-10-14T13:28:10Z")

</div>

Hey @LucBerge , if the node that has the binary is immediately preceding the node you want to access it then you should be able to do it. If it does not work for you that likely means you are not doing it right.

Reading your original post I realized that you are trying to pass the binary between workflows, not the nodes and the post I mentioned does not give an example of this specific use case. However, it does work and I didn’t think a special demo needed.

Try running the below workflow to see how passing the binary from child workflow to the parent works (do update the workflow ID to see the demo in action).

Here’s how binary file (“Binary” node) looks like. I used Set node to demonstrate it where the important option to note is “Include Other Input Fields”.

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

---

<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:** [October 22, 2024, 10:00am UTC](https://community.n8n.io/t/pass-binary-data-between-workflows/57495/6 "2024-10-22T10:00:37Z")

</div>

Closed on October 22, 2024, 10:00am UTC

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