File SystemBinary Data
Convert a Buffer to a ReadableStream
The naive approach to creating a ReadableStream from a Buffer is to use the ReadableStream constructor and enqueue the entire array as a single chunk. For a
Convert a Buffer to a Uint8Array
The Node.js Buffer class extends Uint8Array , so no conversion is needed. All properties and methods on Uint8Array are available on Buffer .
Convert a Blob to a string
The Blob class provides several methods for consuming its contents in different formats, including .text() .