Luca:

try
http://www.cs.wustl.edu/~schmidt/cs544/download.html

avere piacere!

-Martin

>From: Luca Ventura <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Download a file using HttpUrlconnection class (??)
>Date: Tue, 10 Sep 2002 13:37:24 +0200
>MIME-Version: 1.0
>Received: from mc3-f3.law16.hotmail.com ([65.54.236.138]) by mc3-s1.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 10 Sep 2002 04:38:22 -0700
>Received: from swjscmail2.java.sun.com ([192.18.99.108]) by mc3-f3.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 10 Sep 2002 04:37:56 -0700
>Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid 288B422CF0; Tue, 10 Sep 2002 05:35:07 -0600 (MDT)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2632683 for [EMAIL PROTECTED]; Tue, 10 Sep 2002 05:33:15 -0600
>Received: from hal-7.inet.it (hal-7.inet.it [213.92.5.33]) by swjscmail1.java.sun.com (Postfix) with ESMTP id 6F222480D for <[EMAIL PROTECTED]>; Tue, 10 Sep 2002 05:33:14 -0600 (MDT)
>Received: from [::ffff:194.185.222.237] by hal-7.inet.it via I-SMTP-4.2.1-420 id 073+Wrde1cYSJ; Tue, 10 Sep 13:37:30 2002 +0200
>Delivered-To: [EMAIL PROTECTED]
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
>Importance: Normal
>Message-ID: <[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 10 Sep 2002 11:37:57.0023 (UTC) FILETIME=[82241AF0:01C258BE]
>
>Hello everybody!
>
>I would like my servlet or jsp-page to download a file from an http or https
>url
>(for example: http://www.domain.com/filetodownload.pdf). So I suppose
>I must use HttpUrlconnection or HttpsUrlconnection classes. Am I right?
>How can I do all this in my servlet? Then I would like to send the file just
>read to the
>user that connects to my servlet: is it possible to send it
>"on the fly" without saving it on disk before? In fact I would like to send
>it
>to the user while the servlet is reading (downloading) it.
>Which type of java variables (String or what??? )must I use to store
>"temporarly" the data of the file
>I am reading and downloading?
>
>Can you give me a code example please?
>
>Thanks a lot in advance!
>
> Luca
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com


Chat with friends online, try MSN Messenger: Click Here
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com

Reply via email to