• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Upload and Download a file

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can we Upload and download a file using java?
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic