on 15/11/01 9:29 pm, Dasti, Hassan at [EMAIL PROTECTED] wrote: > My application needs to display pictures of each employee on employee's detail > page.
> So before displaying the picture on the page I would like to check if the > photo exists in the image directory. You could try to open a stream to the image if java cant connect it will throw an exception. Alternately if the file could be uploaded as the data is submitted then the receiving code if image save was successful then add an entry to the database. Providing that edit / deletion / insert was done through the tool this should ensure integrity. You could check its presence by checking a database field which you already have for displaying the page and reduce the need for the server to do any additional work when it resources are most precious (displaying pages to the user). Thatıs what I do anyway but I understand this is not always possible. Regards, Nic. ==========================================================================To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com