Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Problem with the file size bigger than 2gig

Help
2008-06-03
2013-02-24
  • vasily molotov
    vasily molotov
    2008-06-03

         I read the source code of DataConnection.java, and i saw the code for resuming uploading/downloading, RandomAccessFile. The method of RandomAccessFile skipBytes(int) has the limitation, if the file's size bigger than 2 giga byte, the integer can't represent the file size value correctly(need use long type). At that time, the uploading/downloading will fail. Do you have any idea to handle this situation?

     
    • Cyberdemon
      Cyberdemon
      2008-06-20

      Hi, I changed the skipBytes() to seek and changed some interfaces, unfortunetely my shell account doesn't seem to work.

      I'll upload a new version when it's active again.

      Thanks for your bug report!