This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes program to transfer files from one server to another and displaying progress bar for each transfer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "program to transfer files from one server to another and displaying progress bar for each transfer" Watch "program to transfer files from one server to another and displaying progress bar for each transfer" New topic
Author

program to transfer files from one server to another and displaying progress bar for each transfer

trisha mehta
Greenhorn

Joined: Jun 05, 2013
Posts: 1
i have written a java code to transfer files from one server to another using the concept of socket programming. now in the same code i also want to check for the network connection availability before each file is transferred. i also want that the files transferred should be transferred according to their numerical sequence. And while the files are being transferred the transfer progress of each file i.e the progress percentage bar should also be visible on the screen.

i will really appreciate if someone can help me with the code. i am posting the code i have written for file transfer.

(ClientMain.java)


(DirectoryTxr.java)


(ServerMain.java)


(DirectoryRcr.java)


1. ClientMain.java and DirectoryTxr.java are the two classes under client application. ServerMain.java and DirectoryRcr.java are the two classes under Server application.
2. run the ClientMain.java and ServerMain.java
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: program to transfer files from one server to another and displaying progress bar for each transfer
 
Similar Threads
Easy way to get total number of files on disk?
Multithreading client socket throws Stream corrupted exception
Cheking dir
Data loss converting StringBuilder to byte[]?
NIO Socket weirdnes in Solaris 2.10