Base64Decode

The Base64Decodefunction decodes a base64 string.

Syntax

  Copy codeCopy code
string Base64Decode(
  string encodedString
);

Parameters

encodedString

A string that is base64 encoded according to RFC 4648.

Return values

Returns the string version of the base64 string that is passed as a parameter. Returns null if the value of encodedStringis not a valid base64-encoded string.

Example code

The following example returns the string "Lync Server 2013".

  Copy codeCopy code
Base64Decode("T2ZmaWNlIENvbW11bmljYXRpb25zIFNlcnZlciAyMDA3")

See also