Last active
April 18, 2023 10:30
-
-
Save HananoshikaYomaru/d15fc7b3cbd9f2ced8b0f7eb9078233a to your computer and use it in GitHub Desktop.
getImageFromObjectUrl.ts
This file contains 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
export const getFileFromObjectUrl = async (url: string) => { | |
const result = await fetch(url); | |
return result.blob(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment