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)

Function Properties 

OrdinalTypeDescription
1stringRequiredBase64 encoded string to decode
2stringCharacter set to use when decoding string value, such as ASCII or UTF-8

Example 

1<script runat="server">
2     var encodedStr = Platform.Function.Lookup("forBase64Info","ReceiptData","ReceiptKey","stringValue");
3     var decodedStr = Platform.Function.Base64Decode(encodedID);
4</script>