function decodeBase64(value): Uint8Array

Decodes the base-64 encoded value.

Parameters

ParameterTypeDescription
valuestringThe base-64 encoded value.

Returns

Uint8Array

The decoded binary data.

Example

// The decoded value is always binary data...
result = decodeBase64('SGVsbG8gV29ybGQhIQ==');

// ...use toUtf8String to convert it to a string.
toUtf8String(result);

// Decoding binary data
decodeBase64('EjQ=');

Source

encoding/base64.ts:30