let url = GLOBAL.BACKENDURL + "/image/" + name;
fetch(url, {
method: "GET",
mode: "cors",
})
.then((res) => {
return res.blob();
})
.then((blob) => {
let imgFile = new File([blob], name, { type: "image/png" });
return imgFile;
});
let url = GLOBAL.BACKENDURL + "/image/" + name;
fetch(url, {
method: "GET",
mode: "cors",
})
.then((res) => {
return res.blob();
})
.then((blob) => {
let imgFile = new File([blob], name, { type: "image/png" });
return imgFile;
});