Problem in displaying image in FireFox

Posted by Param-Ganak on Stack Overflow See other posts from Stack Overflow or by Param-Ganak
Published on 2010-05-04T06:59:46Z Indexed on 2010/05/04 7:38 UTC
Read the original article Hit count: 173

Filed under:
|
|
|
|

Hello friends, I have a JSP page on which I have a div tag in which there is a a IMG tag. Using this IMG tag I want to show an image in it. Here the source path of an image is comes from database so I assigned a JSP variable using JSP scriplet. This JSP variable have the source path of an image. This path of image may be of different machine or of same machine i.e. images are stored on different machine or on same machine i.e. on local machine on different drive. The problem is that how to give path of image stored on different machine as well as on same machine. I have tried different ways like by giving ip address of that machine. Here is the path that of local machine where the image is stored

img src= file:\localhost\D:\ScannedSheets\testproj/batch1/IMG001.jpg style="z-index:1; position:absolute; top:0; left:0; width:850; height:1099"

With this syntax the image is visible in Internet Explorer but With the same syntax Its not visible in FireFox, Google Chrome etc.

Please Guide me in friends.

Also tell me that how to give path of the image stored on different machine which works In Internet Explorer, FireFox, Google chrome etc.

© Stack Overflow or respective owner

Related posts about html

Related posts about jsp