async function fnc() {
  const file = await fetch('sample.jpg');
  console.log(file);
  const blob = await file.blob();
  console.log(blob);
  const image = new Image();
  image.src = URL.createObjectURL(blob);
  document.querySelector('body').appendChild(image);
};

fnc();