views:

26

answers:

0

Is it possible for my intranet web application in Internet Explorer to save an image loaded into the browser to a location on the disk, without any user intervention? That is just save the image, and not ask the user where they would like to save it.

As this is an intranet I'm happy to use WSH/Active Objects and make it a trusted site etc. and have an IE only solution.

  1. I've tried document.execCommand("SaveAs", false, "Test.html"); but after IE 6 it presents the user with a Save As dialog: http://msdn.microsoft.com/en-us/library/ms536419%28VS.85%29.aspx
  2. There's lots of examples here using WSH and ActiveX, but they seem to be writing text files only, and I need to write a binary image file, and I'm not sure how I could read the binary data out of an image or URL in javascript anyway.