Quantcast
Channel: Internet Explorer 8, 9, 10 Forum
Viewing all articles
Browse latest Browse all 1908

IE10 - Intranet site - Writing a file to the local file system

$
0
0

Hi,

I am writing an Intranet site and would like to write a blob somewhere on the filesystem.  What is the best way of doing this?  I already have the blob stored in indexeddb.  I was trying this:

						var reader = new FileReader();
						reader.onload = function (file) {
							var stream = new ActiveXObject("ADODB.Stream");
							var r = file.target.result;
							var ary = new Uint8Array(r);
							stream.Type = 1;
							stream.Open();
							try
							{
								stream.Write(ary);
								stream.SaveToFile(tempPath, 1);
								stream.Close();
							}
							catch (ex) {
								stream.Close();
								throw ex;
							}
						};
						reader.readAsArrayBuffer(f);

but the Write throws this exception: "Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another."

Any help would be appreciated.


Viewing all articles
Browse latest Browse all 1908

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>