convert from jfif to jpg code example
Example 1: jfif to jpeg javascript
axios.get(API_URL, { responseType: "blob" }).then(resp => {
const url = URL.createObjectURL(resp.data);
document.getElementById("preview").src = url;
});
Example 2: jfif to jpeg javascript
fetch(API_URL)
.then(resp => resp.data.blob())
.then(blob => {
const url = URL.createObjectURL(blob);
document.getElementById("preview").src = url;
});