I am receiving a string that I thought was an image blob, but I am unable to transform it into a valid URL. I am not sure how to do it correctly. Can someone help me?
request $.ajax(payload, () => const blob = new Blob([response], { type: "image/*"});
const url = URL.createObjectURL(blob);
const testData = {...data};
delete testData.src;
testData.src = url;
setNewData(testData);
The response is an image.