How to write a file from an ArrayBuffer in JS

前端 未结 3 1330
花落未央
花落未央 2020-12-31 03:33

I am trying to write a file uploader for Meteor framework. The principle is to split the fileon the client from an ArrayBuffer in small packets of 4096 bits that are sent to

3条回答
  •  轮回少年
    2020-12-31 04:25

    Building on Karl.S answer, this worked for me, outside of any framework:

    fs.appendFileSync(outfile, new Buffer(arrayBuffer));
    

提交回复
热议问题