Why cannot you forward your response to the file URL if the file is available within the web application directory.
response.sendRedirect("File Location"); Otherwise you can use the servlet output stream Good Luck -Kanishka --- Meryl Silverburgh <[EMAIL PROTECTED]> wrote: > Hi all, > > Can you please tell me what is the best way to send > back a file as > http response in a Servlet? > Should I use NIO? > Or I just use the normal, open the file, read it a > chuck at a time and > write that to the servlet output stream? > > Thank you. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]