Method

DecodeBase64


Description

This function returns the original, unencoded string when passed a Base64-encoded string.

Usage

result = DecodeBase64(str, encoding)

Part

Type

Description

result

String

The decoded value of str.

str

String

The Base64 String to be decoded.

encoding

TextEncoding

Optional: The text encoding of the passed string.

Notes

The DecodeBase64 function performs the reverse operation of EncodeBase64.

Sample code

The following code decodes a string back into ASCII:

Var encoded, decoded As String
encoded = EncodeBase64("How now brown cow.", 0)
decoded = DecodeBase64(encoded)

MessageBox(decoded)

Compatibility

All project types on all supported operating systems.