RE: Image download?

2004-02-10 Thread jon yeargers
Can you be more specific as to whats (not) happening? Are you getting anything? How are you calling it? -Original Message- From: Josh G [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 3:59 PM To: [EMAIL PROTECTED] Subject: Image download? Hi, I have a servlet that's t

Re: Image download?

2004-02-09 Thread Philipp Taprogge
Hi! I don't know if this will help you, but I use the ImageIO classes for exactly the same purpose. Works great for me. I first create a BufferedImage and then write it to the response. The code looks something like this: BufferedImage bi; //make your BufferedImage from whatever response.setCon

Re: Image download? - FIX

2004-02-09 Thread Josh G
At 09:58 AM 10/02/2004, you wrote: Fix0r3d. For the archives, here's the fix: //Set content-type ServletContext context = getServletContext(); response.setContentType(context.getMimeType(media.getLocation())); //Open file

Image download?

2004-02-09 Thread Josh G
Hi, I have a servlet that's trying to send image files instead of a html response that doesn't seem to be working. Here's the code in question: //Set content-type ServletContext context = getServletContext(); response.setContentType(context.getMimeT