Skip to main content
Version: 4.49.0-beta

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. In order to access the local filesystem, the XILL4_WORKDIRS environment variable must be set to the path of the directory to be accessed.

Inputs

  • Name: Input

    • Description: 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",
      "type": "text" // optional, defaults to "text", can be "text" or "json"
      "path": "C:\\Migration Data\\new.xlsx",
      }

Outputs

  • Name: Output

    • Description: The input data and a success message

    • Example:

      {
      value: {
      payload: "examplePayload",
      path: "C:\\Migration Data\\new.txt",
      },
      result: 'success'
      }