Share via

FtpWebRequest.UseBinary does not work since 2007

Marcin 1 Reputation point
2022-09-12T16:01:40.873+00:00

Hello,
I've been working recently with FtpWebRequest and SIZE method. The FTP server that I'm using requires using binary mode. Unfortunately, I'm not able to use GetFileSize via FtpWebRequest.

I've found out that the Microsoft team is "well aware" of this limitation: https://social.msdn.microsoft.com/Forums/en-US/0c38814e-d8e3-49f3-8818-b5306cc100ce/ftpwebrequestusebinary-does-not-work?forum=netfxnetcom

Out of curiosity, has anything changed since 2007? I'm currently using dotnet 6.0.400.

Developer technologies | .NET | Other

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.