Get Bytes from Text Activity

Description:

Encodes all the characters in the specified string into a sequence of bytes.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.CodeActivity
      Geocortex.Workflow.Activities.GetBytesFromText

Function:

This activity converts a text string to a byte array.

In a Workflow:

This activity provides a convenient way to obtain the byte data for a text value. This may be useful in conjunction with other activities, such as Write File, which require byte data as inputs.

This activity allows you to control the character encoding used when converting between a string and a byte array.

Properties:

Name Description

In Arguments

Encoding

The character encoding. If not specified, the operating system's default encoding will be used.

For example:

Text

The input string containing the characters to encode.

Misc

Display Name

GetBytesFromText

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Out Arguments

Result

The result byte array.

Version Information:

Supported from: Geocortex Essentials 3.15.