Commons Net
  1. Commons Net
  2. NET-418

File truncated when transfer on ftp

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: 3.0.1
    • Fix Version/s: None
    • Component/s: FTP
    • Labels:
      None
    • Environment:

      Transfer from Windows server 2008 R2 64 bits to Linux Centos 5.5 x86 64 bits Pro FTPD A31

      Description

      File after transfer is truncated.
      Original file has a size of 17 172 261 bytes and file after transfer 17 170 762 bytes.

      1. notices.txt
        145 kB
        PARENT JP
      2. notices_total.zip
        5.98 MB
        PARENT JP

        Activity

        Hide
        PARENT JP added a comment - - edited

        I checked our code and I saw we didn't set file type for transfer and default value is ASCII, we set now to BINARY and it's ok, original file and dest file have now exactly the same size.
        Thanks a lot Sebb.
        Issue can be closed.

        Show
        PARENT JP added a comment - - edited I checked our code and I saw we didn't set file type for transfer and default value is ASCII, we set now to BINARY and it's ok, original file and dest file have now exactly the same size. Thanks a lot Sebb. Issue can be closed.
        Hide
        Sebb added a comment -

        What is the code you are using to upload the file?

        Are you using binary or ascii mode?

        Show
        Sebb added a comment - What is the code you are using to upload the file? Are you using binary or ascii mode?
        Hide
        PARENT JP added a comment -

        notices.txt has also the same problem, original size 148 232 bytes and after transfer file has a size of 148 228 bytes

        Show
        PARENT JP added a comment - notices.txt has also the same problem, original size 148 232 bytes and after transfer file has a size of 148 228 bytes
        Hide
        PARENT JP added a comment -

        Previous file was not the good one

        Show
        PARENT JP added a comment - Previous file was not the good one
        Hide
        PARENT JP added a comment -

        Original file for ftp transfer

        Show
        PARENT JP added a comment - Original file for ftp transfer

          People

          • Assignee:
            Unassigned
            Reporter:
            PARENT JP
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development