login about faq

My existing code written in .Net implements FtpWebRequest for file transfer to the server by establishing ftp connection.

We have the property : UseBinary

FtpWebRequest.UseBinary = True / False

http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.usebinary(v=vs.110).aspx

We are now in the process of migrating our application using Chilkat Sftp to Sftp enabled server. I wonder whether there is any similar method in Chilkat for UseBinary Property.

asked Oct 07 '14 at 17:19

chilldll's gravatar image

chilldll
3631015


If you are using methods such as UploadFileByName, DownloadFileByName, or any of the directory tree synchronization methods where your app doesn't explicitly open the remote file, then the file transfer is always binary mode (i.e. files are transferred byte-for-byte exactly as-is between client and server).

If your app instead explicitly opens a file via the OpenFile method, you may include the "textMode" keyword in the createDiposition argument. See the online reference for the SFtp.OpenFile method.

link

answered Oct 08 '14 at 08:32

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

My understanding about FtpWebRequest.UseBinary Boolen determines whether to write CR LF or LF in the end of the line in the file. I tested my existing code by changing the boolen value from False to True. I noticed CR is written in the end of line. While i changed to False, I happened to CR omission.

(Oct 08 '14 at 14:43) chilldll
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×200
×43

Asked: Oct 07 '14 at 17:19

Seen: 979 times

Last updated: Oct 08 '14 at 14:43

powered by OSQA