This documentation is archived and is not being maintained.

Base64Decode

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The Base64Decode function decodes a base64 string.

Syntax

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 encodedString is not a valid base64-encoded string.

Example Code

The following example returns the string "Office Communications Server 2007".

Base64Decode("T2ZmaWNlIENvbW11bmljYXRpb25zIFNlcnZlciAyMDA3")
Show: