Encoding
decodeBase64
function decodeBase64(value): Uint8Array
Decodes the base-64 encoded value
.
Parameters
Parameter | Type | Description |
---|---|---|
value | string | The 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
Was this page helpful?