Skip to main content
Version: Latest (4.54.0)

File Writer

The File Writer component takes an input file (either as a string or a stream) and writes it to the path given in the input. The local file system or a cloud storage can be used. In order to access the local filesystem, the XILL4_WORKDIRS environment variable must be set to the path of the directory to be accessed.

Configuration

Inputs | Outputs


File-Writer
Input
Output
Error
00 0 (is8xud4)
note
If the incoming message is an object containing the path or payload keys, these values will take precedence over the Path and Payload in the configuration. For example, if the incoming message only includes a payload and the configuration defines both Payload and Path, the payload from the incoming message and the Path from the configuration will be used.

The component will look at the incoming message for the binary or payload keys. If it finds both, the binary takes priority.

Example 1:

{
"binary": // containing a readable stream,
"path": "C:\Migration Data\new.xlsx"

}

Example 2:

{
"payload": "examplePayload",
"path": "C:\Migration Data\new.xlsx"

}

Example 3:

{
"binary": // containing a readable stream,
"path": "<cloud-storage>://Migration Data/new.xlsx"

}