Split Out Binary Data

Go to Workflow
5,766 views
Built by Tom Tom
Created on May 05, 2022

Description

This workflows helps with processing binary data.

You'll often have binary objects with keys such as attachment_0, attachment_1, attachment_2, etc. attached to your items, for example when reading an incoming email.

This binary data is hard to process because it's not an array you can simply loop through.

This workflow solves this problem by providing a Function node that takes all incoming items and all their binary data and then returning a single item for each file with a data key containing your binary file.

Incoming binary data:


Processed binary data:

This workflow was created by Tom and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.

Nodes Used (2)

Compression
n8n-nodes-base.compression
HTTP Request
n8n-nodes-base.httpRequest