Convert Bytes To Text Activity

Description

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.

Usage

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.

Inputs

Bytes

Required

Type: Number[]

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.

Encoding

Optional

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.

Outputs

text

Type: String

The text corresponding to the byte array.

The encoding specified will determine what text content the byte array is converted to.

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 Encoding.GetString(Byte[]) method.