Created
December 27, 2016 09:30
-
-
Save zakki/b43609a219d9eed5477d87ca99ff3728 to your computer and use it in GitHub Desktop.
emscripten readFile
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
var buf = FS.readFile('/foo/bar'); | |
var blob = new Blob([buf], {"type" : "application/octet-stream" }); | |
var url = URL.createObjectURL(blob); | |
$('#result').attr("href", url); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment