Trouble Sending Binary Image Data and Text Together in HTTP Request Node

Hi,
I need help with an HTTP Request node setup. I have to send two pieces of data: an image file (coming from another node as binary data) and some text (coming from a different node). The issue is that I can usually see the text in the HTTP request, but the binary image data doesn’t show up.
What am I doing wrong? How can I include both the text and the binary image in the same HTTP request?
Thanks in advance!

The binary data needs to be referenced by a field name (usually literally: “data”) available in the node directly prior to your HTTPRequest node.

Try changing the order of things so you can reference the binary data that way, and use the node-name to reference the source node of your text content, which can be farther back in the workflow.

Example:

Thank you for the answer,

Here’s an example of exactly what I’m trying to do, maybe it explains better:
I download an image from my Google Drive as binary, and it comes out as data in the output. The next node describes this image and creates a text prompt.
The last node should take both this text prompt and the binary image output from the first node, and remix them — so it should use both the image and the prompt.

But in this last node, I can only get either the prompt or the image.
When I add both to the body, it always throws an error.

The easiest solution is to re-download the image again between the describe and remix nodes. To send an image the data must be downloaded in the node directly before the node it’s being passed to. You should then be able reference both nodes in the remix node by pulling the description from the describe node and directly passing the data into the remix node. Not the most efficient but it should work.

I think you just need to use the “Merge” node with “Combine” mode and “all possible combinations”

something like this

2 Likes

thank you very much, this method solved it all :smiley:

1 Like