how to get an image - hogehoge666/syno_moments_slider GitHub Wiki

Make sure you set responseType to 'arraybuffer'.

If you don't specify the responseType, the default type is 'json'. Your target server will encode your image in JSON format and you or your browser won't be able to decode it.

axios({
    method: 'get',
    url: 'http://some.url/some/api',
    responseType: 'arraybuffer', <<<
    headers: {
        'Cookie': `id=${token}`
    }
});