How can I display locally saved images on the website?

I would like to display images on my website that are stored on the visitors' local file system.

Assuming I have the location of the image on the visitors drive (eg c: \ Documents and Settings \ Ropstah \ image.png), is it possible for me to display this image on my website (eg www.website.com)?

Images will not load when I use the following syntax (Internet Explorer 7, Firefox 3, etc.):

<img src="file://c:\Documents and Settings\Ropstah\image.png" />

      

DO images are displayed if the .html file (which I use on the website www.index.html) is on my local machine ...

+1


a source to share


4 answers


This sounds like a security setting in a web browser, which is probably set to a level that prevents the local file system from accessing the internet site.



Security settings can be edited by users specific to each browser. for example for IE it Tools -> Internet Options -> Security

+4


a source


You can if the user installs your site in the trusted zone.



+1


a source


You can not.

Silly, these browsers have chosen to close the "security holes" by not allowing public web pages to disable local content.

0


a source


By using pure HTML, you cannot access files stored on users' computers. You can use Flash, Java Applet, ActiveX, Silverlight, ... instead.

0


a source







All Articles