How to get binary data in the correct way?

One of the easiest options is to use a Merge node.
See this example:

Here I was able to download a file after receiving a chat message and then merged both in one single item.

Because they were merged, the image (binary data) was passed forward to the Upload File node.

Other options

  • Writing the file to the filesystem, using “Read/Write File” node and then retrieving the file before the upload.

  • Changing the environment variable N8N_DEFAULT_BINARY_DATA_MODE from default to filesystem, making all binary files get stored in the filesystem by default. See documentation here.

.
:point_right: If my reply answers your question, please remember to mark it as a solution.

4 Likes