Writing binary data using node.js fs.writeFile to create an image file
JavaScript language had no mechanism for reading or manipulating streams of binary data. The Buffer class was introduced as part of the Node.js API to make it possible to interact with octet streams in the context of things like TCP streams and file system operations. Pure JavaScript, while great with Unicode encoded strings, does not … Read more