tchmi_base64decode

[ Function ]

function tchmi_base64decode(input: string): string | null;

Converts a base64 string.

Please note that strings are encoded in JavaScript UTF16.

Parameter

Name

Type

Description

input

string

Base64 String

Return value

Type

Description

string, null

Converted string. See note below.

tchmi_base64decode 1:

Available from version 1.8
In version 1.8 null is returned if the input string is not a valid Base64 format.
From version 1.10 an exception is thrown.

Sample - JavaScript

TcHmi.Log.debug(tchmi_base64decode('VHdpbkNBVCBITUk=')); // 'TwinCAT HMI'