Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: Binary mode and file name appendix .txt
j.hillhead

From: Finland
Posts: 2
Member Since: 06/17/15
posted June 17, 2015 5:53 AM

It seems to me, that the file name appendix .txt overrides the binary mode setting (FileType.Image). I had an enciphered file data.txt and when getting this file all 0a bytes (=NL) were replaced by 0d 0a (CR NL). Am I right? Is there possibly other file name conventions causing this kind of confusion?
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted June 17, 2015 9:10 AM

Hello,

By default, our component will automatically set the transfer type based upon the file extension when transferring a file; to disable this, set Ftp.Session.AsciiExtensions.Enabled to false. To specify the transfer type manually before a transfer, use Ftp.SetType().
j.hillhead

From: Finland
Posts: 2
Member Since: 06/17/15
posted June 17, 2015 9:21 AM

Thank you Nick for your quick and sensible response. I didn't understand the meaning of AsciiExtensions.


Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX