Image not being displayed ("Not found") >> Same thing works in firefox (BUG!?)

I've written a html page which contains the following tag:

<img src="icons/addmate.jpg" />

The html file resides in
"C:\Documents and Settings\matt\My Documents\Visual Studio 2005\Projects\DaNetCli_Proto\Mods\default\tools.html"

and the jpg file resides in:
"C:\Documents and Settings\matt\My Documents\Visual Studio 2005\Projects\DaNetCli_Proto\Mods\default\icons\addmate.jpg"

Now the strange bit: this html file works inFirefox,but not in IE.

Anyone come across the same problem or know a workaround. I'd really like to avoid using an absolute path.

[659 byte] By [dastudios] at [2008-2-6]
# 1
AH! Found the problem!

The reason this was happening is why most software running on windows (usually) isn't as good as software running on linux - Windows apps (generally) determine the format of the file by its extension.

IE thought that the file was of jpg format, and the program that I'd saved it in saved it as png format...

I'm quite sure that this issue should be addressed in IE7. Another thing that might need to be checked is the MIME headers - if they don't match the format of the file should they be ignored?

Thanks anyway

dastudios at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...