File Writer
The File Writer component writes a configured payload or readable binary stream to the configured path. Select Payload or Binary mode to choose the source. The local file system or a cloud storage can be used.
note
Azure paths require the Length setting in Binary mode. Configure a byte count or an expression such as {{length}}. An incoming length field is not used automatically.
See how it works:
File Writer Explainer
Configuration
Inputs | Outputs
note
The configured mode and expressions determine which incoming values are used. There is no automatic priority between binary and payload fields.
Example 1: Select Binary mode, set Path to {{path}}, and Binary stream to {{binary}}.
{
"binary": // containing a readable stream,
"path": "C:/Migration Data/new.xlsx"
}
Example 2: Select Payload mode, set Path to {{path}}, and Payload to {{payload}}.
{
"payload": "examplePayload",
"path": "C:/Migration Data/new.xlsx"
}
Example 3: Select Binary mode, set Path to {{path}}, Binary stream to {{binary}}, and Length to {{length}}.
{
"binary": // containing a readable stream,
"length": // containing the length of the readable stream in bytes,
"path": "<cloud-storage>:/Migration Data/new.xlsx"
}