> From: Susan G. Conger [mailto:sus...@bfcassociates.com] > Subject: Serving images from classes directory > > I need to be able to serve images from the classes directory > of my web app.
Try using ClassLoader.getResourceAsStream() to read the image, then write it to the response output stream. You'll need to set the content-type header appropriately, of course. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org