In my program, I generated a HTML report with images (*.jpg) linked via file protocol, but customers find that images in the report cannot display correctly in IE (with red X), but it display well in Firefox, Why? I start to searching the difference between Firefox and IE, the length limitation of src attribute, and so on… with no avail. Then I tried to display a another JPeg file in IE, it works!!! Finally I found the cause, the images linked in the report has a jpg extension, but actually, they are png images, firefox seems can recognize this and display a png picture with jpg extension correctly, but IE get confused and display a red X. The fun thing is, if I change the extension to *.whatever, then both Firefox and IE will display the picture correctly, weird~~
Leave a Comment
No comments yet.
Comments RSS TrackBack Identifier URI
