Base64Decode

Description

Decodes a string value using Base64 decoder.

Applies to

CoderObject object

Syntax

coder.Base64Decode ( variable )

Argument

Description

coder

The name of the CoderObject object.

variable

A string whose value is the data you want to decode with Base64 decoder.


Return value

Blob. Returns the result of the decoding if it succeeds. If any argument's value is null, the method returns null. If an error occurs, throw the exception.

Examples

This statement decodes the data that is encoded using Base64.

Blob lblb_data
String ls_Base64Str

CoderObject lnv_CoderObject
lnv_CoderObject = Create CoderObject

//ls_Base64Str = lnv_CoderObject.Base64Encode(Blob("Test Base64", EncodingANSI!))
ls_Base64Str = "VGVzdCBCYXNlNjQ="

lblb_data = lnv_CoderObject.Base64Decode(ls_Base64Str)
messagebox("Base64Decode", string(lblb_data, EncodingANSI!))

See also

HexDecode

HexEncode

Base64Encode

UrlEncode

UrlDecode