Skip to content

Instantly share code, notes, and snippets.

@gliheng
Last active November 17, 2017 09:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gliheng/76aefe1ea609dee17a068a1bd78f9f89 to your computer and use it in GitHub Desktop.
Save gliheng/76aefe1ea609dee17a068a1bd78f9f89 to your computer and use it in GitHub Desktop.
This opens an image with raw binary data
'data:image/png;base64,' + btoa(String.fromCharCode.apply(null, new Uint8Array(blob)))
// open this base64 image url in browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment