Skip to content
FlowHubFluxonLab
W
General Automationfree

Write JSON to Disk (Binary)

by mikeadapted from n8n official workflow galleryUpdated Aug 2026
Share Post Share
WBWrite Binary FileWrite Binary Fi…FuMake BinaryFuCreate Example DataCreate Example …12
1/5
STEPS · 2
Execution path through the workflow

The “Write Binary File” expects binary data. The JSON data is, however, JSON ;) There should really be a node that allows moving data around between both of them. For now, it can be done with a Function-Node. At least till a proper one is in place. The first node is example data, wich you can customize or replace. The second node named “Make Binary” is the important one with the custom code which makes the data binary and writes it to the correct location.

Tags

n8nreference-only
CategoryGeneral Automation
Triggermanual
Complexitysimple
Nodes3
AddedOct 11, 2019
free

Using the Merge Node - Merge by Key

This is an example of how you can make Merge by Key work. The “Data 1” and “Data 2” nodes simply provide mock data. You can replace them with your own data sources. Then the “Convert Data” nodes are important. They make sure that the different array items are actually different items in n8n. After that, you have then the merge with the merged data.

by mike
free

Webhook returning XML

Receives data from an incoming HTTP Request (set up to use respond to webhook node) Create dummy data Convert JSON to XML which gets returned Respond to Webhook which returns the data and the content type of the data

by Jan Oberhauser
W
free

Listen on new emails on a IMAP mailbox

Listen on new emails on a given IMAP mailbox. Converts the binary XML attachment to a stringified xmlproperty on the $data object and converts it to JSON. The Setnode could be replaced with Function nodes for example to do a conversion/mapping/transformation. The JSON is ultimately sent to a HTTP Endpoint via POST. This could be a starter for EDI purposes like receiving or transmitting XML data and conversion via JSON object property mapping.

by mail