Base64Decode
Overview
Decodes any string value encoded using the Base64Encode() function. This function works only with values encoded using the specific server-side JavaScript function and not any other Base64-encoded string values.Syntax
Base64Decode(1, 2)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Base64 encoded string to decode |
| 2 | string | Character set to use when decoding string value, such as ASCII or UTF-8 |
Example
<script runat="server">
var encodedStr = Platform.Function.Lookup("forBase64Info","ReceiptData","ReceiptKey","stringValue");
var decodedStr = Platform.Function.Base64Decode(encodedID);
</script>