Skip to main content

method Uint8Array.setFromBase64

#Uint8Array.setFromBase64(
string: string,
options?: { alphabet?: "base64" | "base64url"; lastChunkHandling?:
"loose"
| "strict"
| "stop-before-partial"
; }
,
): { read: number; written: number; }

Populates this Uint8Array object with data from a base64 string.

MDN

Parameters #

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

Return Type #

{ read: number; written: number; }

Did you find what you needed?

Privacy policy