From .net framework 2.0 onwards .net supports FTP operations. Like HttpWebRequest and HttpWebResponse, for FTP operations, FtpWebRequest and FtpWebResponse classes are available, under System.Net namespace. Here is the code snippet, which will help you to upload a file to FTP server, using C#.
And here is the GetFileData function, which will return byte array from File.
From the response object, you can get the information about the status of the operation. You can either use StatusCode enum property or StatusDescription property. You can find more information about the status code enumeration on MSDN
Happy Coding :)
Did you like this article? Share it with your friends