From users-return-143486-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Sun Apr 02 17:52:32 2006 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 78056 invoked from network); 2 Apr 2006 17:52:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Apr 2006 17:52:32 -0000 Received: (qmail 27075 invoked by uid 500); 2 Apr 2006 17:52:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 27054 invoked by uid 500); 2 Apr 2006 17:52:17 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 27043 invoked by uid 99); 2 Apr 2006 17:52:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Apr 2006 10:52:17 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of silverburgh.meryl@gmail.com designates 64.233.184.237 as permitted sender) Received: from [64.233.184.237] (HELO wproxy.gmail.com) (64.233.184.237) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Apr 2006 10:52:17 -0700 Received: by wproxy.gmail.com with SMTP id 37so1118740wra for ; Sun, 02 Apr 2006 10:51:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LhZIqSoIIE595dRkIf/w73Cf4RZvz1zBObvPVBkCKajGOAJiqw5hgZmnajnYr02KIJrHKtZIjAoOTCAOKzFPCOy+KJCSS/i4j+tZgbtp+Nu8enS5TSzwIp4lgyT+8Fs/OrFaqcesuG0UApi6CgytxQ+0a4wQZufl4uIQEBA80AY= Received: by 10.54.71.7 with SMTP id t7mr2333176wra; Sun, 02 Apr 2006 10:51:56 -0700 (PDT) Received: by 10.54.72.9 with HTTP; Sun, 2 Apr 2006 10:51:56 -0700 (PDT) Message-ID: <701fce30604021051p5eaf91e8jc6d787d255a99ec@mail.gmail.com> Date: Sun, 2 Apr 2006 12:51:56 -0500 From: "Meryl Silverburgh" To: users@tomcat.apache.org Subject: What is the best way to send back a file as http response? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org