Hi,
I worte a
Servlet project using JBuilder 7 and
TOmcat 4. THis is basically what i am doing...
I am getting an image from database and saving it to a folder in tomcat and then displaying it on a browser.
This application is used by multiple users...
I am saving the Image in Tom-cat...C:\JBuilder7\jakarta-tomcat-4.0.3\webapps\examples\Image1.jpeg
I am also displaying the image from that folder. The problem is when i run the application,
I am seeing the same Image on the screen..Its creating the different Image file, but the image is the same.
If i do a refresh on the page then it displays the new saved Image...
Also, If i save the image on my local and then display it from my local it changes the images as I
click on a Image list...
Following is how it works when i save it and display it from my local, but if i run my application from
another computer i am not able to see any of the images....Because its on my local.
fos = new FileOutputStream("C:/Image1.jpeg");
<img src="file:///C|/Image1.jpeg" height="855" name="myimage" align="middle" style="position:absolute;">;
And this is how i am doing when i am saving to the tomcat....I am able to display it on another computer
but would not change the image...
fos = new FileOutputStream("../webapps/examples/Image1.jpeg");
<img src="../Image1.jpeg" height="855" name="myimage" align="middle" style="position:absolute;">;
Can some one please tell me what could be the Problem....
Any help will be greatly appreciated....Thanks...