aspose file tools*
The moose likes I/O and Streams and the fly likes Transferring file from client to server 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 "Transferring file from client to server" Watch "Transferring file from client to server" New topic
Author

Transferring file from client to server

kirty nahar
Greenhorn

Joined: May 02, 2002
Posts: 11
Hello
1.I am trying to develop a program that would transfer a directory containing any no of sub-directories having any number and any type of files (exe,dll,txt etc) from the client to server of any size. Please Help
2.How can I install/update an exe file from the server to the client (preferablly 10 clients at a time) automatically with just one click.
Email - kirty_nahar@rediffmail.com
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

Originally posted by kirty nahar:
Hello
1.I am trying to develop a program that would transfer a directory containing any no of sub-directories having any number and any type of files (exe,dll,txt etc) from the client to server of any size. Please Help

Since you asked this question a month ago you must be well on your way to achieving this goal. That is, unless you are waiting for us to do your work for you. If you've done any searching on this site or looked at the Java Tutorial's section on IO, you'd know that transferring files across a network is a no-brainer. You are going to have to write a client and install it by hand (or use a signed applet or Java Web Start) to do the work on the client side.

2.How can I install/update an exe file from the server to the client (preferablly 10 clients at a time) automatically with just one click.

That depends on what you are trying to install. Many install programs have a "silent" mode where they can be run without user interaction. Maybe you should read the documentation of the products you are attempting to install.


[How To Ask Questions On JavaRanch]
himanshu patel
Ranch Hand

Joined: Feb 03, 2003
Posts: 205
1.I am trying to develop a program that would transfer a directory containing any no of sub-directories having any number and any type of files (exe,dll,txt etc) from the client to server of any size. Please Help
What OS is running on your server?If it is any flavour of UNIX, it
would be a bit easy.
Are you going to write standalone Java program which does transfer or
want to make use of FTP protocol.Since FTP is very fast,it would be good to use it.If file size is large, FTP is much faster.
You may consider first zipping entire directory from root and than transfering it.This would save a lot of time and overhead.If requires,you may unzip at server once the required zip file has transfered.

2.How can I install/update an exe file from the server to the client (preferablly 10 clients at a time) automatically with just one click.
Where are the clients machine? Is it connecetd through LAN,WAN or
INTERNET?
Do you want to write server application or client.I mean application
will run on server or client?
[ January 28, 2004: Message edited by: himanshu patel ]

If you want to become a rich, do not work for others but make others to work for you.
kirty nahar
Greenhorn

Joined: May 02, 2002
Posts: 11
Thanks mr himanshu patel
1.well my os is windows. The idea about zipping is good and i'll try it out.
i have used sockets.
2.The client machines are on the LAN
Anything would do either a client or a server or both.
Any idea as to how i can do remote installation of any s/w using java prog.lets say, my exe is on server & sitting on server I want to install it on any of my clients mach. in LAN. The exe may or may not support silent installation.
1.I am trying to develop a program that would transfer a directory containing any no of sub-directories having any number and any type of files (exe,dll,txt etc) from the client to server of any size. Please Help
2.How can I install/update an exe file from the server to the client (preferablly 10 clients at a time) automatically with just one click.The m/c are on the LAN on windows platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transferring file from client to server