aspose file tools*
The moose likes I/O and Streams and the fly likes Upload and Download a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Upload and Download a file" Watch "Upload and Download a file" New topic
Author

Upload and Download a file

Preeti Aggarwal
Greenhorn

Joined: Jun 28, 2001
Posts: 9
How can we Upload and download a file using java?
Abhijit Kulkarni
Greenhorn

Joined: Dec 03, 2000
Posts: 23
I think, if you want a client-server sort of interaction (if it suits your req.) an easy idea will be to use socket communication and download and upload the file as a file object via ObjectStreams. This is an idea!
Servlets can allow you to upload a file by the doPut() method.
File download depends...You can place it as an ftp link.. ut as far as an java program is concerned, if it is a browser based program then it cannot write to your disk!

Originally posted by Preeti Aggarwal:
How can we Upload and download a file using java?


------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination


<b><i>Abhijit</i></b> <br />---------------------------------<br />Give me my share of smile!
 
wood burning stoves
 
subject: Upload and Download a file