RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

displaying local (client side) images in webpage

Join Date: Jul 2006
Location: Deptford, London
Posts: 989
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 6
Solved Threads: 52
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: displaying local (client side) images in webpage

  #5  
Oct 24th, 2007
Whether or not a browser allows a page to reference files on a user's computer in any way is dependant on the browser and perhaps security settings; although, it's certainly been possible in previous IE versions to display images that are stored on a user's PC via a webpage, regardless of the host of the webpage. For that user only of course...

This works for me in IE6:
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <img src="file://c:/synd.gif"/>
  6. </body>
  7. </html>

But not in Opera or Firefox.. Dunno about IE7. Opera and Firefox only allow this when the host is the localhost - in other words; when the page referencing the image is also on the user's PC.
Plato forgot the nullahedron..
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:10 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC