Skip to main content
Version: V3 (Ignition 8.3)

tamaki.mes.utils.base64_decode_as_string

Description

Decodes a base64-encoded byte string and returns the result as a normal (ASCII) string.

Syntax

tamaki.mes.utils.base64_decode_as_string(bytestring)

Parameters

ParameterTypeNullableDescription
bytestringStringFalseThe base64-encoded string.

Returns

A String containing the decoded, unencoded ASCII text.

Code Examples

# Decode a value read back from a page URL query parameter
if 'locationId' in value:
locationId = tamaki.mes.utils.base64_decode_as_string(value['locationId'])
self.params.locationId = locationId