DecodeText

This Flow Script tutorial explains how to use the DecodeText function with syntax and examples.

Description

The DecodeText function decodes text encoded as binary data (from a BLOB database column or a File Gallery interaction item). The second argument specifies the encoding from which to decode. Valid values for this argument can be found in the "encodings" system variable available in all workflows.

Syntax

‌The syntax for the DecodeText function is:

DecodeText(data, encoding)

Parameters

data - the input which is to be decoded.

encoding - the encoding from which to decode. Valid values for this argument can be found in the "encodings" system variable available in all workflows.

Returns

‌The DecodeText function returns a string.

Example

Let's look at some DecodeText function examples and explore how to use the DecodeText function.‌

DecodeText(myFile.data, encodings.Windows1252)
Result: contents of myFile.data, decoded using the Windows 1252 Character Set

Last updated