Convert Text To Bytes Activity
Description
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.
Usage
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.
Inputs
Text |
Required Type: String The text content to convert to bytes. |
Encoding |
Optional 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. |
Outputs
bytes |
Type: Number[] 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. |
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...