views:

209

answers:

5

Hi,

i would like to display images on my website that are stored on a visitors local filesystem.

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

The images won't seem to load when i use the following syntax (Internet Explorer 7, Firefox 3 etc..):

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

The images DO display if the .html file (which i use on website.com/index.html) is located on my local pc...

+4  A: 

This sounds like security settings on the web browser, which are probably set to a level that prevents local filesystem access for an internet site.

Security settings can be edited by users, in a way specific to each browser. for example for IE it's Tools -> Internet Options -> Security

Macker
I know it's security settings, is there a workaround for all browsers? It doesn't matter if visitors have to make changes to security settings at all, just want to know if it's possible...
Ropstah
A: 

You can't.

Stupidly, these browsers have decided to close "security holes" by not allowing public web pages to disable local content.

MiffTheFox
A: 

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

Darin Dimitrov
I really need to display images (png), other options are not available... :(
Ropstah
+1  A: 

You can if the user sets your site to be in the Trusted zone.

Boo
I see this doesn't work for Firefox. Maybe it does for IE, i'd have to check tomorrow.
Ropstah
If this doesnt seem to work, go check out http://www.travian.com. It's an online browser game that lets you download a 'media pack' which installs (I think its a zip file) all the site's graphics on your system so as to speed up render times.
Boo
A: 

hi everyone! i got a problem of recalling image from local file to process in server of internet browser by using (FireFox 3.xxxx). can anyone help?

prak