Last active
September 13, 2017 16:01
-
-
Save gauravmehla/4ef6a07ec5bf0fc614f88bd2635009d8 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
| function readFile( pathToFile ){ | |
| resolveLocalFileSystemURL( pathToFile , function (fileEntry) { | |
| fileEntry.file(function (file) { | |
| var reader = new FileReader(); | |
| reader.onloadend = function (event) { | |
| console.log(event) | |
| }; | |
| reader.readAsDataURL(file); | |
| }); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment