The setFromBase64()
method of Uint8Array
instances populates this Uint8Array
object with bytes from a base64-encoded string, returning an object indicating how many bytes were read and written.
This method is most suitable for populating a pre-allocated array buffer. If you just want to create a new Uint8Array
object from a base64-encoded string, use the static method Uint8Array.fromBase64()
instead.