FME Transformers: 2024.2

Categories
Database
Strings

BinaryDecoder

Decodes Base64 or HEX text to binary data.

The transformer converts the ASCII text into a sequence of bytes, and then sets these bytes as the value of the destination attribute. If the ASCII text represents an encoded string value, use the Output Character Encoding parameter to set the character encoding of the output attribute.

For example, if the encoding string was produced from a UTF-8 string, the Character Encoding parameter should be set to UTF-8, or the string value will not be meaningful in other transformers. If no character encoding is selected, the attribute is tagged as containing binary data.

If the attribute value contains invalid data (that is, the attribute value was not properly encoded using the selected encoding method), the translation will stop.

Configuration

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Transformer History

Selecting HEX as the Encoding Type replaces the HexDecoder transformer, which is now deprecated.

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

  Search for all results about the BinaryDecoder on the FME Community.

Keywords: HexDecoder