📅  最后修改于: 2022-03-11 14:48:29.595000             🧑  作者: Mango
import fetch from 'node-fetch'
const res = await fetch(image)
const imgBody = `data:${res.headers.get('content-type')};base64,${(await res.arrayBuffer()).toString('base64')}`