Skip to main content

method Uint8ArrayConstructor.fromBase64

#Uint8ArrayConstructor.fromBase64(
string: string,
options?: { alphabet?: "base64" | "base64url"; lastChunkHandling?:
"loose"
| "strict"
| "stop-before-partial"
; }
,
): Uint8Array<ArrayBuffer>

Creates a new Uint8Array object from a base64 string.

MDN

Parameters #

#string: string
#options: { alphabet?: "base64" | "base64url"; lastChunkHandling?:
"loose"
| "strict"
| "stop-before-partial"
; }
optional

Return Type #

Uint8Array<ArrayBuffer>

Did you find what you needed?

Privacy policy