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.
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[] 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.
Connectivity Requirements
This activity does not work when the device has intermittent connectivity to the network.
See also...
The FileStream.WriteAsync(Byte[], Int32, Int32, CancellationToken) method.