📅  最后修改于: 2022-03-11 15:00:08.250000             🧑  作者: Mango
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");
});