Converts an ArrayBuffer into a base64 string.
The resulting string can optionally be a data uri if the mediaType argument is provided.
mediaType
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs for more details.
The Array Buffer to encode.
Optional
An optional media type, i.e. audio/ogg or image/jpeg. If included the resulting string will be a data URI.
audio/ogg
image/jpeg
Converts an ArrayBuffer into a base64 string.
The resulting string can optionally be a data uri if the
mediaTypeargument is provided.See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs for more details.