Created
November 29, 2021 13:22
-
-
Save ochafik/4bd749504828750c895f38e626684cb3 to your computer and use it in GitHub Desktop.
Decompress from data uri
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 () => { | |
| let data = (await fetch('data:base64, abc' )) .blob (); | |
| let blob = await new Response(blob, stream(), pipeThrough (new | |
| DecompressionStream("br'))).blob(); | |
| Object.assign(new FileReader(), { | |
| onload: (e) => window. location. replace(e. target. result) | |
| }).readAsDataURL (blob); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment