Organizations and data
Work with files and images
A file does not live in json. The file sits on binary on the same item, under a name such as invoice or photo. Nodes pass that slot. They do not stuff the file body into a field.
What the binary field stores
One name is one file. You or the node choose the name, and the next step fetches the file by that name. The contents sit in data as base64. mimeType, fileName, and fileExtension tell later nodes what the file is and what to call it.
"binary": {
"invoice": {
"data": "<base64>",
"mimeType": "application/pdf",
"fileName": "invoice.pdf",
"fileExtension": "pdf"
}
}Use a node that already speaks files
- Convert to File turns text, JSON, or a spreadsheet into a file on binary.
- Extract From File reads a file on binary back into rows or text.
- Read/Write Files from Disk reads and writes the machine disk when you self-host. A cloud instance does not have your disk.
- Compression, image edits, HTML, XML, and FTP each have their own nodes. They still take and return a binary slot.
On a self-hosted instance you can also choose where binary data is stored. That is instance storage, not a field inside json. Changing the store does not change the name a node uses.
Pinning and hidden execution data
If the output includes binary, that step cannot be pinned. To debug a file node you either let it produce the file each time, or prove the surrounding logic with data that has no file.
When execution data is hidden, binary is removed from the record. Opening the execution does not show the file. That does not undo the moment the node already passed the file onward or out to another system.
Questions
Where does Duaer put a file on an item?
Duaer does not put a file in json. The file sits on binary on the same item, under a name such as invoice. The contents are base64 in data, with mimeType, fileName, and fileExtension. The next node fetches the file by that name.
Can a Duaer output that includes binary be pinned, and does hiding execution data keep the file?
A Duaer output that includes binary cannot be pinned. When execution data is hidden, binary is removed from the execution record, so opening it does not show the file. That does not undo the file the node already passed onward or out to another system during the run.
In this section
How data is shaped between nodes
In Duaer, what one node hands to the next node is a list of items. On each item, ordinary fields live in json and files live in binary. Later nodes walk the items one by one.
DataPin data while you build
After you pin a step’s output, later debugging uses that copy instead of waiting for earlier nodes to run again. Pinning applies in the editor only. Production runs do not use pinned data.
ExecutionsHide execution data
After you hide execution data, the execution still shows whether it succeeded, which nodes ran, and how long it took. The input and output those nodes actually processed are no longer shown in the record.