📜  将图像转换为 base64 字符串 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:08.250000             🧑  作者: Mango

代码示例1
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"); 
});