Results 1 to 2 of 2
- 02-21-2011, 06:06 AM #1
Member
- Join Date
- Jul 2009
- Posts
- 4
- Rep Power
- 0
Check if file is done transfering
Hi guys,
I need to know how to check if the file has been finished transferred. For example, I am transferring a 100MB file from server A to server B, and it takes like 2 minutes to transfer. In server B, I need a java method to check if this file has been fully transferred then I will process this file.
Appreciate any comment please. Thanks !
regards,
Mark Thien :D
- 02-21-2011, 07:35 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 8
Either transfer another small file as a marker and have "B" check every few seconds for the arrival of that file to indicate completion, or have it chaeck the size of the file every few seconds until it can be determined that the file is no longer growing. Or use an actual file upload type transfer rather than ftp is the "arrival" needs to be coordinated.
Similar Threads
-
How to check file existence and rename file with little modification
By Basit56 in forum New To JavaReplies: 5Last Post: 10-17-2012, 10:07 AM -
transfering the file from one machine to another machine using ftp in java
By rkraj in forum Java SoftwareReplies: 0Last Post: 02-07-2011, 01:27 PM -
Transfering all items from one List to another
By Bulelakes in forum New To JavaReplies: 6Last Post: 08-23-2010, 08:48 AM -
Transfering Focus
By kevh in forum AWT / SwingReplies: 0Last Post: 07-30-2010, 06:12 PM -
How to check whether file is exists or not
By Java Tip in forum java.ioReplies: 0Last Post: 04-05-2008, 10:13 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks