This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload and Download a file

 
Preeti Aggarwal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we Upload and download a file using java?
 
Abhijit Kulkarni
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic