base64StringToUint8Array Function

Given a base-64-encoded string, decode it into an array of bytes.

base64StringToUint8Array(base64: string): Uint8Array

@returns the decoded byte array.

@throws DOMException if the length of the input string is not a multiple of 4.

Parameter Type Description
base64 string The base-64-encoded string.

Returns - Uint8Array

the decoded byte array.

Defined in

Last Updated: 17 December, 2024