File SystemBinary Data
Convert a Uint8Array to a ReadableStream
The naive approach to creating a ReadableStream from a Uint8Array is to use the ReadableStream constructor and enqueue the entire array as a single chunk. For a
Convert a Uint8Array to a DataView
A Uint8Array is a typed array , a view over data in an underlying ArrayBuffer . To convert it to a DataView , create one over the same range of data.
Convert a DataView to a string
If a DataView contains ASCII-encoded text, use the TextDecoder class to convert it to a string.