I am calling an api where i am getting multiple binary data as json. later i want to convert binary data into blob image.
here i am create image src from response. But image is not showing with this src
const imageSrc = window.URL.createObjectURL(new Blob([response.data[0].blob))
<img src={imageSrc} />
Do not use the Blob Class as fetch response already returns Blob
Try doing this
const imageSrc = window.URL.createObjectURL(response.data[0].blob)
<img src={imageSrc} />