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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: FTP
    • Labels:
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: