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