I use axios to get data from my backend .
I print it out using console.log() ,it's an object.I can download it by using "new blob([res.data])"
But when i try to use StreamSaver to download it.i just don't know how can i convert my res.data into Uint8Array.
I've tried to use "new Uint8Array(res.data)" to get Uint8Array but it's empty .
By the way i set responseType as "blob"
I use axios to get data from my backend . I print it out using console.log() ,it's an object.I can download it by using "new blob([res.data])" But when i try to use StreamSaver to download it.i just don't know how can i convert my res.data into Uint8Array. I've tried to use "new Uint8Array(res.data)" to get Uint8Array but it's empty . By the way i set responseType as "blob"