Created
August 22, 2016 22:01
-
-
Save msure/3188ee802e03bbc934409d8ea70c85ce to your computer and use it in GitHub Desktop.
This Example Shows How To Locally Display Your Base64 Output As An Image
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
<html> | |
<head> | |
</head> | |
<body> | |
<p>Here is my image:</p> | |
<img id="img" src=""/> | |
<script type="text/javascript"> | |
document.getElementById('img').setAttribute( 'src', 'data:image/png;base64,PASTE_THE_BASE64_OUTPUT_HERE' ); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment