Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

download file from server

 
R. Roy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to download the content of a specified directory(user-specific) present in the server to the client machine.
Here I dnt knw the content of the directory.I only knw the directory name(which differs from user to user).
Can nyone help me out with coded example?
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It all depends on the protocol you are using on the server, is it Samba, FTP HTTP, WebDAV?

Possibly the best way to do this is to use the VFS package from Jakarta Commons, changing the protocol you use for this is as simple as changing the URI you use for the directory path.

http://jakarta.apache.org/commons/vfs/
 
R. Roy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m using HTTP protocol bt cant it be done java programming with thee FILE class object?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an advanced Java question.

Since you are using HTTP, I've moved this to the Servlets forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic