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
| Parameter | Type | Nullable | Description |
|---|---|---|---|
bytestring | String | False | The 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