RE: How to return jpg from another disk location

2011-09-19 Thread Jeffrey Janner
To: Tomcat Users List Subject: Re: How to return jpg from another disk location -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 9/13/2011 1:21 PM, Jeffrey Janner wrote: Our app currently is not distributable as a war file due to some decisions made long ago (properties files

Re: How to return jpg from another disk location

2011-09-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 9/13/2011 1:21 PM, Jeffrey Janner wrote: Our app currently is not distributable as a war file due to some decisions made long ago (properties files that need to be modified stored in WEB-INF, etc.). [snip] However, there is one

How to return jpg from another disk location

2011-09-13 Thread Jeffrey Janner
Assume Tomcat 6/Java 6 and must be OS agnostic. Our app currently is not distributable as a war file due to some decisions made long ago (properties files that need to be modified stored in WEB-INF, etc.). I have found ways to work around most of the issues, mostly involving moving things

Re: How to return jpg from another disk location

2011-09-13 Thread Thad Humphries
Ask your programmer to write a servlet that reads the image and writes it to the output stream (ServletResponse.getOutputStream()). They should call ServletResponse.setContentType(image/jpeg) before they write (or whatever the MIME type is--image/png, image/gif, etc.). I recommend they also check