To create a file with Node.js, we are going to use the built-in FileSystem module.Save with a buffer as content from a base64 image fs.writeFile(filepath, new Buffer(fileContent, " base64"), (err) > if (err) throw err Made a . load conver and save files and images to base64 in js.3. directory structure and some file templates going. Apr 20, 2012 Node. Ill also install nodemon, a useful utility which restarts the nodejs service each time you save a file change. Over my node.js application I decode base64 encoded images using the following line of code: const fileDataDecoded Buffer.from( base64EncodedfileData,base64)How to decode a data using base64 and save as file object in objective c? upload.js. var uuid require(node-uuid) var fs require(fs)Edited: fs.rename might make more sense here for testing purposes. In a practical application you might want to save uploaded files elsewhere, on s3 perhaps. js file. rc) files used in VC6.