Geocortex Workflow Help
Open topic with navigation
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.
The Write File Bytes activity could be used to save binary content to the server, such as a PDF file or an image.
The Write File Bytes activity is a server activity. It can only be used in server workflows, which require on-premises Workflow.
This activity does not work when the device is offline.
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.
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.
This activity has no outputs.
For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.
The FileStream.WriteAsync(Byte) function.