Templates / Split out binary data

Split out binary data

Needs changes

by Tom ✓ · 8,290 views · created 2022-05-05 · File Management

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
Function (legacy)
Split Up Binary Data
Code node, mode 'Run Once for All Items'

Nodes used (4)

What it does

This workflows helps with processing binary data. You'll often have binary objects with keys such as attachment0, attachment1, attachment2, 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(fileId:635) Processed binary data: !image.png(fileId:636)

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.