RE: How to return jpg from another disk location

2011-09-19 Thread Jeffrey Janner
er 16, 2011 4:03 PM > 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 a

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

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 chec