.NET Components for Mobility

File Transfer Progress

Last post 08-05-2008 4:31 AM by Nacho. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 06-04-2008 11:09 PM

    File Transfer Progress

     Hello everyone!

     I have been using InTheHand.Net.ObexWebRequest in  32Feet.Net to transfer files within my Windows XP program to any bluetooth devices. It has been working great, however, when I send a huge file, I did not get response about the progress; I need to give feedback to user about the number of bytes sent and the number of bytes left.

     I am currently using ObexWebRequest.ReadFile(String filename). Is there a good way (built in) to check the progress? I am planning to modify (or add another function) the current ReadFile function.

     Thank you very much for your kind information!

     

    Best regards,

    K1M 

  • 06-06-2008 9:31 AM In reply to

    Re: File Transfer Progress

    This would be something useful for me too - just starting to work out how 32Feet and bluetooth works.

     ross

  • 07-16-2008 6:44 AM In reply to

    Re: File Transfer Progress

    ReadFile only loads the file contents into a local stream, the actual transfer occurs during GetResponse(). Currently there is no status returned during this operation, but neither does the HttpWebRequest on which it is modelled.

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 07-24-2008 4:15 AM In reply to

    • Nacho
    • Top 200 Contributor
    • Joined on 07-17-2008
    • Posts 4

    Re: File Transfer Progress

     So, are you telling there's no solution to this problem?

  • 08-05-2008 4:11 AM In reply to

    Re: File Transfer Progress

    Sorry for the late reply..,

    Yes, in fact there is a solution, The actual transfer process is done in InTheHand.Net.ObexWebRequest.DoPut(). I added byteSent variable to the classand update the variable in that method to keep track of the transfer progress.

     

    Hope this works for you...

     

    Cheers,

     

    KIM 

  • 08-05-2008 4:31 AM In reply to

    • Nacho
    • Top 200 Contributor
    • Joined on 07-17-2008
    • Posts 4

    Re: File Transfer Progress

    What I understand is that you can know how many bytes you send but the reciber can't know how many bytes had recived. Isn't it?

Page 1 of 1 (6 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.