Results 1 to 2 of 2
  1. #1
    markthien is offline Member
    Join Date
    Jul 2009
    Posts
    4
    Rep Power
    0

    Talking 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

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    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

  1. Replies: 5
    Last Post: 10-17-2012, 11:07 AM
  2. Replies: 0
    Last Post: 02-07-2011, 02:27 PM
  3. Transfering all items from one List to another
    By Bulelakes in forum New To Java
    Replies: 6
    Last Post: 08-23-2010, 09:48 AM
  4. Transfering Focus
    By kevh in forum AWT / Swing
    Replies: 0
    Last Post: 07-30-2010, 07:12 PM
  5. How to check whether file is exists or not
    By Java Tip in forum java.io
    Replies: 0
    Last Post: 04-05-2008, 11:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •