n8n
Workflow
Split Out Binary Data
This n8n workflow automates tasks and integrates with various services. Split Out Binary Data - ready to import and run in your n8n instance.
n8n
workflow.json
About This Script
This n8n workflow automates tasks and integrates with various services. Split Out Binary Data - ready to import and run in your n8n instance.
Features:
- Custom JavaScript function processing
- Makes HTTP requests to external APIs
Source Code
{
"nodes": [
{
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
240,
300
],
"parameters": [],
"typeVersion": 1,
"id": "3e4f8fbb-cac8-481b-9a09-b6e72c9cb355"
},
{
"name": "Split Up Binary Data",
"type": "n8n-nodes-base.function",
"position": [
900,
300
],
"parameters": {
"functionCode": "let results = [];\n\nfor (item of items) {\n for (key of Object.keys(item.binary)) {\n results.push({\n json: {\n fileName: item.binary[key].fileName\n },\n binary: {\n data: item.binary[key],\n }\n });\n }\n}\n\nreturn results;"
},
"typeVersion": 1,
"id": "8c7b6cb3-c1d1-4035-9375-d5f097b2d725"
},
{
"name": "Download Example Data",
"type": "n8n-nodes-base.httpRequest",
"position": [
460,
300
],
"parameters": {
"url": "https://static.thomasmartens.eu/n8n/three_more_files.zip",
"options": [],
"responseFormat": "file"
},
"typeVersion": 1,
"id": "824a3b6e-d5a9-481b-93cd-84082fd2adad"
},
{
"name": "Decompress Example Data",
"type": "n8n-nodes-base.compression",
"position": [
680,
300
],
"parameters": [],
"typeVersion": 1,
"id": "f649368d-2ce2-4d5c-b5d2-c4731b6e092a"
},
{
"name": "Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
420,
120
],
"parameters": {
"width": 400,
"height": 360,
"content": "Configuration note: update with your credentials or endpoint.",
"color": "#FFF59D"
},
"typeVersion": 1,
"id": "3aca3c18-745a-42f7-b517-127c4772cbbf"
},
{
"name": "Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
860,
120
],
"parameters": {
"width": 320,
"height": 360,
"content": "Configuration note: update with your credentials or endpoint.",
"color": "#FFF59D"
},
"typeVersion": 1,
"id": "f8c8bbe0-1cb6-4624-9078-007d065f7206"
}
],
"connections": {
"Download Example Data": {
"main": [
[
{
"node": "Decompress Example Data",
"type": "main",
"index": 0
}
]
]
},
"On clicking 'execute'": {
"main": [
[
{
"node": "Download Example Data",
"type": "main",
"index": 0
}
]
]
},
"Decompress Example Data": {
"main": [
[
{
"node": "Split Up Binary Data",
"type": "main",
"index": 0
}
]
]
}
},
"n8n_version": "1.5.0"
}
Requirements
n8n instance, API credentials for connected services
Tags
#n8n
#automation
#workflow