Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

how to download a file using servlets

Thread view: 
vphanibhushanreddy@gmail.com - 16 Nov 2007 04:45 GMT
Hi! I am Phani.

Could any body send me the sample code for downloading a file using
servlets? I had this problem, when i tried to download the res was not
happening as stream, how can i make that please send me sample code?

Please................ Urgent!
Roedy Green - 16 Nov 2007 05:01 GMT
>Could any body send me the sample code for downloading a file using
>servlets? I had this problem, when i tried to download the res was not
>happening as stream, how can i make that please send me sample code?

use a sniffer to have a look at the messages to and from the server to
request a download.  If the file is short, you can return it as your
response. If it long, you might need to spawn a separate thread, or
use some feature of Servlets I am not familiar with to handle the long
download.

see http://mindprod.com/jgloss/sniffer.html
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Andrew Thompson - 16 Nov 2007 05:08 GMT
...
>Could any body send me the sample code for downloading a file using
>servlets? I had this problem, when i tried to download the res ..

res?  Resin?

>..was not happening as stream,

..oh, that's a *block*.  Try warming it.  It won't make
it runny, but will soften it (and the smoke smells nice).

>..how can i make that please send me sample code?

Sure, for appropriate money..

>Please................ Urgent!

..which would be a lot, for Urgent! requests with
that many 'micro-dots'.  ;-)

Signature

Andrew Thompson
http://www.athompson.info/andrew/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.