How can I compress multiple binaries resulting from the execution into one?

Describe the issue/error/question

jonathanmcfarland

I have a Http Request node that fetches results from multiple endpoints stored in a Google Sheet,
The Http Request node is set to respond with a binary as the result of the request.
In the next step, I used Compression node to create n binaries into 1 zip file,
This resulted in n zip files.

What are the steps involved to create a single zip file?

What is the error message (if any)?

Please share the workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version:0.217.2
  • Database you’re using (default: SQLite):
  • Running n8n with the execution process [own(default)]:
  • Running n8n via [Docke]:

Hi @ybsoft,

I thought we had an example of this somewhere and I found the post below which seems to do what you are after. If you take the last 2 nodes (code and compression) and add them to your workflow it should just work.

Thank you very much.
I’ll give it a try and let you know how it goes.

1 Like

The code works just fine.
However, when I connected directly from the http requests node, only the last request result was compressed.
I added a Move binary data node between the http node and the code node, and it worked fine.

Thank you very much for your help.

1 Like

Hey @ybsoft,

That is interesting, I wonder if the binary data wasn’t binary data from the node but encoded which would cause other issues. Anyway glad you have it sorted :raised_hands:

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