Skip to content

Problem with receiveFile method #78

@cihadoge

Description

@cihadoge

When I call the receiveFile method with offset different than 0, it removes all the data before the offset.

Has anyone faced with this issue ?

Here is my code snippet

// We need to set file length as original file length
RandomAccessFile raf = new RandomAccessFile("download.tmp", "rw");
raf.setLength(originalFileLength);
raf.close();

File receivedFile = new File("download.tmp");
client.receiveFile(receivedFile, offset, length);
client.close();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions