Geocortex Workflow Help
Open topic with navigation
The Convert Text To Bytes activity converts text to byte 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.
A workflow could use the Convert Text To Bytes activity in conjunction with the Convert Bytes To Text activity to change a text file's encoding.
This activity does not work when the device is offline.
The text content to convert to bytes.
Type: "ASCII" | "Unicode" | "utf-7" | "utf-8" | "utf-16" | "utf-16BE" | "utf-32" | String
The character encoding used to convert the text content.
The encoding must be supported by the server or the workflow will fail with an error. If you do not specify an encoding, the server's default encoding will be used. More information on encodings can be found here.
Type: Number Array
The byte content corresponding to the text input.
The encoding specified will determine what byte content the text is converted to.
Bytes are the raw binary values that represent content. A byte array is represented by a list of numbers between 0 and 255. This content is not human readable, and should be used an input to other file activities, such as the Write File Bytes activity.
For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.
The Encoding.GetBytes(String) function.