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
Building on Karl.S answer, this worked for me, outside of any framework:
fs.appendFileSync(outfile, new Buffer(arrayBuffer));