Geocortex Workflow Help
Open topic with navigation
The Convert Bytes To Text activity converts byte content to text. 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 Bytes To Text activity in conjunction with the Convert Text To Bytes activity to change a text file's encoding.
This activity does not work when the device is offline.
Type: Number Array
The byte content to convert to text.
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.
One way byte content can be retrieved is by using the Read File Bytes activity.
Type: "ASCII" | "Unicode" | "utf-7" | "utf-8" | "utf-16" | "utf-16BE" | "utf-32" | String
The character encoding used to convert the byte 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.
The text corresponding to the byte array.
The encoding specified will determine what text content the byte array is converted to.
For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.
The Encoding.GetString(Byte) function.