You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I think it might be because g.buffer is a ArrayBuffer, not a Uint8Array.

    What about:

    fs = require("fs");
    (new Uint8Array(gr.buffer)).set(fs.readFile("­myFile.bin"));
    
About

Avatar for Gordon @Gordon started