decodeBase64Bytes()function
decodeBase64Bytes(base64: string): Bytes
| Param | Type | |
|---|---|---|
base64 | string | The Base64 (or Base64URL) string to decode. required |
| Return | |
|---|---|
Bytes | The decoded byte sequence. |
| Throws | |
|---|---|
ValueError | If base64 contains an invalid character. |
Decode a Base64 string to a byte sequence (decodes Base64URL too).
Examples
decodeBase64Bytes("YWJj") // Uint8Array([97, 98, 99])