Write File Bytes Activity

Description

The Write File Bytes activity writes byte content to a file on the server. This activity should only be used to write binary content, such as an image, PDF or audio file. Text content, such as a CSV file, may produce a corrupted and unreadable output file. The Write File activity should be used for writing text content. Binary content is the raw numbers, known as bytes, that make up a file. More information on the difference between binary and text files can be found here.

Usage

The Write File Bytes activity could be used to save binary content to the server, such as a PDF file or an image.

Environment

The Write File Bytes activity is a server activity. It can only be used in server workflows, which require on-premises Workflow.

Offline Support

This activity does not work when the device is offline.

Inputs

Path

Required

Type: String

The path of the file to create on the server. The file system or network path must be valid and the server administrator must configure the appropriate permissions to allow writing to the file.

Attempting to write to a file that already exists will overwrite the file.

Bytes

Required

Type: Number Array

The byte content to write to the file.

Bytes are the raw binary values that represent content. A byte array is represented by a list of numbers between 0 and 255. Invalid byte content will cause an error.

Byte content can be retrieved using the Read File Bytes or Convert Text To Bytes activity.

Outputs

This activity has no outputs.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

See Also...

The FileStream.WriteAsync(Byte[]) function.

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.10