node图片转base64

var data = 'https://isv.alibabausercontent.com/00000000/imgextra/i1/2634283647/O1CN01wtk46L1coN6mnZbbK_!!2634283647-2-isvtu-00000000.png' //Buffer.concat将chunks数组中的缓冲数据拼接起来,返回一个新的Buffer对象赋值给data
var base64Img =Buffer.from(data).toString('base64');  //将Buffer对象转换为字符串并以base64编码格式显示

console.log(base64Img,"????????????????");