Kind time of the day, download the file already in advance of the specified path.
as here
document.getElementById("myBtn").addEventListener("click", function() { var reader = new FileReader(); reader.addEventListener('load', function() { document.getElementById('file').innerText = this.result; }); reader.readAsText(document.querySelector('input').files[0]); }); <input type="file"> <button id="myBtn">Try it</button> <pre id="file"></pre> but without the web, let's say
var input = "C:\katalog.xls"; At the exit ready Blob
Additional
there is such an option, but it is not clear how to specify a file from the disk, only you can file from the root folder.
var oReq = new XMLHttpRequest(); oReq.open("GET", "*.doc", true); //oReq.open("GET", jsonObject, true); oReq.responseType = "blob"; oReq.onload = function(oEvent) { var blob = oReq.response; insertFile(blob); // ... }; oReq.send();