Answers for "image read to base64 url"

2

img src data base64

<img src="data:image/png;base64,..." /> <!-- Replace png with the mime type of the image --!>
Posted by: Guest on March-01-2021
-1

converting image to base64 string

router.post('/upload',function(req,res){
var base64ToBuffer = new Buffer(req.image, 'base64');//Convert to base64

//Write your insertcode of MongoDb

res.end("Image uploaded Successfully"); 
});
Posted by: Guest on May-23-2021

Browse Popular Code Answers by Language