π Split out binary data
β‘ 8,078 views Β· π File Management
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: image.png
Processed binary data: image.png
π Nodes Used
Function, HTTP Request
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File