Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-500

FTPClientExample does binary transfers by default instead of ASCII as stated in documentation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.2
    • 3.3
    • FTP
    • all environments concerned

    Description

      Following change should be added to the FTPClientExample class, otherwise
      the default ASCII setting will not be set.

      if (binaryTransfer)

      { ftp.setFileType(FTP.BINARY_FILE_TYPE); }

      // Added else to set correct default file type / M. Frick 2013-02-03
      // Default ftp class file type seems to be binary!
      else

      { ftp.setFileType(FTP.ASCII_FILE_TYPE); }

      // End of change / M. Frick 2013-02-03

      Attachments

        Activity

          People

            Unassigned Unassigned
            michaelfrick Michael Frick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: