Hello everybody! I would like my servlet 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, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html