Created
October 12, 2021 11:05
-
-
Save charisTheo/08d3c581925b9f0c589a1c4db53d5830 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function getImageBlobFromUrl(url) { | |
const fetchedImageData = await fetch(url) | |
const blob = await fetchedImageData.blob() | |
return blob | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment