You can also store data on the client’s disk (in another place so that you can access the file using JavaScript). This article is quite extensive when it comes to this topic:
http://www.html5rocks.com/en/tutorials/file/filesystem/
However, it is not supported in all browsers.
You need to request storage space (file system), then create a file, write data to it, and finally get the URL:
window.requestFileSystem(window.PERSISTENT, 5*1024*1024, function(fs) { fs.root.getFile(filename, {create: true}, function(fileEntry) { fileEntry.createWriter(function(fileWriter) { var arr = new Uint8Array(data.length);
source share