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_MODEfrom default tofilesystem, making all binary files get stored in the filesystem by default. See documentation here.
.
If my reply answers your question, please remember to mark it as a solution.