I'm trying to find a way to get file from user via file upload and send it to a function which converts the file into base64.Here's the function:var into64 = (fileLocation) => { var myFile = fs.readFileSync(fileLocation) return new Buffer.from(myFile).toString('base64'); } What could be the possible solutions?
Submitted May 30, 2019 at 09:48AM by pverma8172
No comments:
Post a Comment