Get just parts of files?

  • marcel3

    marcel3 - 2009-02-23


    Is it possible to get just specific parts of a file with the obexftp-library? For example to get just the first 64kbyte.

    If not, is this a limitation of obexftp or of the obex-protocol?


    • Christian W. Zuckschwerdt

      The obex protocol handles complete files only. Though you might get away with canceling a running download.

    • marcel3

      marcel3 - 2009-02-24

      Thanks, that would be an idea. But this is not possible with the library of obexftp, isn't it? I would have to implement the ftp-part by myself?

      • Christian W. Zuckschwerdt

        The library doesn't support this by itself. But you should be able to code a proof of concept into the client. When you receive some PROGRESS event try sending a cancel operation. You need to read the headers before sending the cancel.


Log in to post a comment.