When I do a GET on a binary resource the data I get back is corrupted. Please see below for the oada-cache call I tried and then an axios request which returns the correct data.
const { data, headers } = await conn.get({ path })
const { data, headers } = await axios.get(path, {
baseURL: domain,
headers: { Authorization: `Bearer ${token}` },
responseType: 'arraybuffer'
})
Perhaps all that is needed to address this is a way to ask oada-cachefor an arraybuffer response.
When I do a GET on a binary resource the
dataI get back is corrupted. Please see below for the oada-cache call I tried and then an axios request which returns the correct data.Perhaps all that is needed to address this is a way to ask oada-cachefor an
arraybufferresponse.