0

hi i m not able to load an image in chrome using img src="E:\pic1.jpeg" when i run this code in internet explorer its working bt not in chrome . on the other hand when i give the name of image instead of path in src then its working ...

plz help ... regards Prabjot

prabjot
  • 1
  • 1
  • 1
  • 2
    You realize that using a windows-style absolute `d:\path\file` is not going to work on a published website? No one in the world but you is likely to have that file in the exact same place. – Marc B Mar 25 '11 at 19:04
  • Following up with what @Marc B said: upload your image to an image hoster like http://tinypic.com/ for example, and use it's new internet url instead. This will fix the Chrome image problem. – rlb.usa Mar 25 '11 at 19:05
  • Refer this link http://stackoverflow.com/questions/7348326/img-tag-path-not-working-in-chrome-and-firefox/7348419#7348419 – san Sep 09 '11 at 03:41

2 Answers2

1

Chrome probably doesn't handle file system paths (or at least not without using file://). Even if this did work, that link would only work on your local machine as the person browsing your website wouldn't have an image at that location.

You should be using URLs for your resources (i.e. images), not file paths.

Brian Ball
  • 12,268
  • 3
  • 40
  • 51
0

Have you tried using file:// to prefix your image local path?

tamarintech
  • 1,972
  • 12
  • 17