Created
October 6, 2015 03:00
-
-
Save chikoski/c320dbcb3c990f68947c to your computer and use it in GitHub Desktop.
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
| var storage = navigator.getDeviceStorage("music"); | |
| window.addEventListener("load", function() { | |
| var cursor = storage.enumerate(); | |
| cursor.onsuccess = function(){ | |
| var file = this.result; | |
| console.log(file); | |
| var reader = new FileReader(); | |
| reader.onload = function(){ | |
| var bytes = this.result; | |
| console.log(bytes); | |
| }; | |
| reader.readAsArrayBuffer(file); | |
| }; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment