File SystemBinary Data
Convert an ArrayBuffer to a Uint8Array
A Uint8Array is a typed array , a view over the data in an underlying ArrayBuffer .
Convert an ArrayBuffer to an array of numbers
To retrieve the contents of an ArrayBuffer as an array of numbers, create a Uint8Array over the buffer, then use Array.from() to convert it to an array.
Convert a Buffer to a string
The Buffer class provides a .toString() method that converts a Buffer to a string.