API Reference > bentleyjs-core > Utils > base64StringToUint8Array base64StringToUint8Array Function Given a base-64-encoded string, decode it into an array of bytes. base64StringToUint8Array(base64: string): Uint8Array 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 core/bentley/src/StringUtils.ts Line 157 Last Updated: 11 June, 2024