Tuesday 22 March 2016

How do I write binary bz2 to file?

Hey /r/node, I'm trying to get more familiar with node and have run up against something I'm not familiar with - binary data and file I/O.I'm requesting a compressed game replay file (.dem.bz2) over http and want to write the response to a file. I'm using fs.writeFile(target, new Buffer(source), ...) but not having any luck - the parser (which is current) is throwing not a replay file and I'm not really sure why.I have a few more details over here.What am I missing?

Submitted March 23, 2016 at 02:02AM by Jefftopia

No comments:

Post a Comment