うまくいかなったのでメモ
結論
responseType: 'arraybuffer'
の指定が必要
axios.get(url, { responseType: 'arraybuffer' }) .then(response => Buffer.from(response.data, 'binary').toString('base64'))
うまくいかなったのでメモ
responseType: 'arraybuffer'
の指定が必要axios.get(url, { responseType: 'arraybuffer' }) .then(response => Buffer.from(response.data, 'binary').toString('base64'))