Previous Topic

Next Topic

Base64DecodeString - MaxBasic Function

Base64DecodeString(EncodedText: String): String

Given a Base64 encoded string EncodedText, returns its decoded version as a string.

Base64DecodeString function has these named arguments:

Parameter

Description

EncodedText

Required. A Base64 encoded string, to be decoded.

Sample code:

S = "Hello World"
Encoded = Base64EncodeString(S)
Decoded = Base64DecodeString(Encoded)
Print "Encoded:" & Encoded
Print "Decoded:" & Decoded

Returns:

Encoded:SGVsbG8gV29ybGQ=
Decoded:Hello World

See Also

String Functions

Book Contents

Book Index