Re: Serving files using tomcat

2005-05-05 Thread Steve Vanspall
) dos.write(bytes, 0, read); dos.flush(); return null; - Original Message - From: David B. Saul [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Thursday, May 05, 2005 6:43 AM Subject: RE: Serving files using tomcat May not be critical

Serving files using tomcat

2005-05-04 Thread Steve Vanspall
Hi, I have been looking around and haven't found a solution that works basically I have a PDF that gets created dynamically. Now to save memory I have the PDF written to a file rather than a ByteArray. The only way I can be sure that I wont encounter errors creating the file is to use

Re: Serving files using tomcat

2005-05-04 Thread Anhony
(); out.close(); } } } - Original Message - From: Steve Vanspall [EMAIL PROTECTED] To: Tomcat User List tomcat-user@jakarta.apache.org Sent: Wednesday, May 04, 2005 9:29 AM Subject: Serving files using tomcat Hi, I have been looking around and haven't

Re: Serving files using tomcat

2005-05-04 Thread Steve Vanspall
Message - From: Anhony [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, May 05, 2005 1:02 AM Subject: Re: Serving files using tomcat Greetings, Take a look at the code fragment below. It should serve as a good starting point. I hope this helps

RE: Serving files using tomcat

2005-05-04 Thread Phillip Qin
Code should work. Also read email between Daivd and mine. .pdf has to be appended for IE to load pdf. -Original Message- From: Steve Vanspall [mailto:[EMAIL PROTECTED] Sent: May 4, 2005 11:48 AM To: Tomcat Users List Subject: Re: Serving files using tomcat Unfortunately that is what I

Re: Serving files using tomcat

2005-05-04 Thread Anhony
Message - From: Steve Vanspall [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, May 04, 2005 11:47 AM Subject: Re: Serving files using tomcat Unfortunately that is what I do OutputStream dos = null; FileInputStream fis = null; try { fis = new

Re: Serving files using tomcat

2005-05-04 Thread Steve Vanspall
: Anhony [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, May 05, 2005 2:19 AM Subject: Re: Serving files using tomcat I use this code and it works in my app. Their are small differences between how we copy the data to the response output. I don't know

RE: Serving files using tomcat

2005-05-04 Thread David B. Saul
\ to the URL. -Original Message- From: Anhony [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 9:20 AM To: Tomcat Users List Subject: Re: Serving files using tomcat I use this code and it works in my app. Their are small differences between how we copy the data to the response

Re: Serving files using tomcat

2005-05-04 Thread Dakota Jack
: Thursday, May 05, 2005 1:02 AM Subject: Re: Serving files using tomcat Greetings, Take a look at the code fragment below. It should serve as a good starting point. I hope this helps. AS- private void processPDFRequest(HttpServletRequest request, HttpServletResponse response