# Re-using binary data

**URL:** <https://community.n8n.io/t/re-using-binary-data/49548>\
**Category:** Questions\
**Tags:** workflow-building, move-binary-data\
**Created:** [July 3, 2024, 11:56am UTC](https://community.n8n.io/t/re-using-binary-data/49548 "2024-07-03T11:56:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mokkin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mokkin/32/18256_2.png) [@mokkin](https://community.n8n.io/u/mokkin)\
**Post date:** [July 3, 2024, 11:56am UTC](https://community.n8n.io/t/re-using-binary-data/49548/1 "2024-07-03T11:56:34Z")

</div>

I’m retrieving a binary file (PDF) via HTTP node to be processed in the following node. That’s fine.

Some nodes later I need the same file again to be processed (Email node) again. How can I select the same binary file without retrieving it again?

## Information on your n8n setup

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

---

<div class="post-metadata">

**Author:** ![Ludwig](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ludwig/32/58969_2.png) [@Ludwig](https://community.n8n.io/u/Ludwig)\
**Post date:** [July 3, 2024, 7:20pm UTC](https://community.n8n.io/t/re-using-binary-data/49548/2 "2024-07-03T19:20:05Z")

</div>

Hi @mokkin, thanks for reaching out again. Happy to have you as part of our community.

Your best option would be to ensure that the binary is included in the outputs of the subsequent nodes as long as you need it.

Here are some other resources from out community that might be helpful:

> [@Return binary data from a node a few nodes back (within a loop)](http://community.n8n.io/t/return-binary-data-from-a-node-a-few-nodes-back-within-a-loop/34890):
>
> I am trying to access the binary data of a node in a loop over items. I do require the loop over items (my actual workflow is more complicated), I have just provided below as a MWE. What is the error message (if any)? No error, but binary data is not outputted. See output of last node below. Please share your workflow Share the output returned by the last node As above, not as the not as the n8n binary data output Information on your n8n setup n8n version: …

> [@How to get binary data from a previously processed node?](http://community.n8n.io/t/how-to-get-binary-data-from-a-previously-processed-node/14762/3):
>
> Welcome to the community @Ronald_Lam! Sorry not at the computer right now, so can not post an example. But what you can do is to merge the binary data back in the flow again by using the Merge-Node in mode “Merge by Index”. Hope that is helpful!

---

<div class="post-metadata">

**Author:** ![mokkin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mokkin/32/18256_2.png) [@mokkin](https://community.n8n.io/u/mokkin)\
**Post date:** [July 3, 2024, 10:39pm UTC](https://community.n8n.io/t/re-using-binary-data/49548/3 "2024-07-03T22:39:06Z")

</div>

Thank you for your answer @Ludwig !

Unfortunately something like `{{ $('get PDF').item.binary.data }}` doesn’t seem to work as described [here](http://community.n8n.io/t/return-binary-data-from-a-node-a-few-nodes-back-within-a-loop/34890/10).

Therefore I did it with the merge node as suggested like this:

Is this also your recommendation?

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [July 3, 2024, 11:11pm UTC](https://community.n8n.io/t/re-using-binary-data/49548/4 "2024-07-03T23:11:45Z")

</div>

Yes, there is currently no other way of doing that (Merge-Node).

However, we are rethinking binary data. We have wanted to change it for a while as it constantly causes confusion, and we would rather make it work like all other data in n8n. If it gets implemented as planned, something like the expression mentioned above would work.

---

<div class="post-metadata">

**Author:** ![mokkin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mokkin/32/18256_2.png) [@mokkin](https://community.n8n.io/u/mokkin)\
**Post date:** [July 3, 2024, 11:15pm UTC](https://community.n8n.io/t/re-using-binary-data/49548/5 "2024-07-03T23:15:32Z")

</div>

That would be great. Especially when reusing the binary file multiple times using several merge nodes can become confusing.

I’m looking forward for the feature!

---

<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:** [July 10, 2024, 11:15pm UTC](https://community.n8n.io/t/re-using-binary-data/49548/6 "2024-07-10T23:15:42Z")

</div>

Closed on July 10, 2024, 11:15pm UTC

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