How to send binary via HTTP from non-parent node?

Hi. I’m doing a workfow where Telegram accepts an image, sends a “in process” message and then send the image to process.
image

The problem is that I can’t now tell the HTTP node to pick the “data” field for binaries. This is because the trigger node with the image is no longer the parent of the HTTP node.

So I need to tell the HTTP node somehow how to take the binaries using the expression, I guess. And I can’t find the way to do that — the binary data field is absent. The current choise doesn’t help:

What is the processing message node’s output? Specifically the binary tab?

would something like this work?


image

That might work. But have first to figure if the Processing Message node is passing the binary data or not. If it’s passing the data, you can reference the binary data in the HTTP node. Else something like what you suggested has to be done as we need to add the binary data to the output of the processing message.

It has no binaries
This is the first node:

This is the 2nd (with message):

@RedPacketSec I’ll try to check it.
But anyway, I guess that there must be a way to accept binary files from any node in the workflow, not from the strict parent only.

Then you can do what @RedPacketSec suggested but with the Merge by Index option. With that, the binary data it’s going to be available in the HTTP node. Keep in mind that referencing binary data it’s different than referencing JSON data. When referencing binary data, what is important is the binary property name, which it’s called “data” by default. Using the binary data in the HTTP node should look something like below, assuming that you want to send the file/image using multipart/form-data.

Thank you. I’ll try this solution

This works, thank you.

So to bring binary data further, I need to transfere it with a Merge node. But it will bring unwanted paramters too.

Supose I want to put the receipt image in the Airtable in the very end. So I must bring the binary data and JSON data together via the Merge node. But there will be some unwanted fields for Airtable. To get rid of them I could use a Set node and leave only proper fields. But this clear the binary.

use an IF node after merge to keep only what you need?

Also, in the Airtable node you can set the fields you want to be inserted. All other fields will be omitted.