Using binary data in more than the next node

Hi,

I am downloading an image from a WhatsApp image then directly passing the binary data to Gen AI to extract key information. This works perfectly.

However, if it is a certain category, I only then want it to be uploaded to a Google Cloud bucket. I can’t see a way how I can access the binary data unless it is the next node (i.e. once retrieved from WhatsApp).

Is there a way I can store my binary data so I can reference it further on in the flow? I don’t really want to upload it for it to be potentially deleted again (for example, if the image is not appropriate).

Thanks!

1 Like

Hi @ebm_developer

You can merge the data back in like this.

:heart:If this response helped you, please click the heart to show that it is useful
:white_check_mark:If this response solved your issue, mark it as the solution to help the community

Hi,

Not sure that helps but I probably need to give you more information.

I’m getting the binary data using an “HTTP Request” node (as it requires authentication) then passing directly to an “Analyze image” node. After that, I can’t get access to that data.

Which part above specifically allows me to access the data further down?

Sorry for the questions, I am still new to n8n!

1 Like

@ebm_developer

after the analyze image node, merge the data back in. like this.

2 Likes

Yep, that worked, thank you!

Can you tell me what the purpose of merge is here? How does this node fix my problem?

1 Like

@ebm_developer

The merge brings the data back in to be used.

1 Like

Sure, just wondered why “data” isn’t available further down in nodes.

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