Closed GoogleCodeExporter closed 9 years ago
In order to handle binary data, use the new Buffer class, introduced in v8cgi
0.9.0. Your file-writing example can be rewritten like this:
var Buffer = require("binary").Buffer;
var binaryData = new Buffer([10, 20, 30]);
f.write(binaryData);
Original comment by ondrej.zara
on 17 Feb 2011 at 1:23
Original issue reported on code.google.com by
nanoyo...@yahoo.it
on 17 Feb 2011 at 7:23