Guys help me to convert this
let a = Buffer.from('aaaaaaa', 'binary').toString('base64');
I need to convert 'a' into string. I have converted to binary data to write it in MongoDB. Now I want to do the opposite. How can I do this in Node JS
Guys help me to convert this
let a = Buffer.from('aaaaaaa', 'binary').toString('base64');
I need to convert 'a' into string. I have converted to binary data to write it in MongoDB. Now I want to do the opposite. How can I do this in Node JS