17/06/2015 by Nitesh

Upload Files to FTP Server in C#

Friends, In some of my previous articles, I wrote about with How To List Files From FTP Server, How To Delete File From FTP Server, How To Download File From FTP Server. In this article, we will see how can we upload a file to FTP server using C# from our local hard disk. private…

Continue Reading »

09/01/2015 by Nitesh

Download Image Files From FTP Server in C#

Friends, In my previous posts, I dealt with How To List Files From FTP Server, How To Delete File From FTP Server. In this post, we will see how can we can download an image file from FTP server using C# from within your Console or Windows Forms Application. private StreamReader DownloadFileFromFTP() { var request…

Continue Reading »

29/12/2014 by Nitesh

How To Check If a File Exists In FTP Server in C#

Friends, In my last post, we saw how can we delete a file from FTP server. However, there might be a situation when you try to delete a file and the file does not exist on the server. In this case, code will throw an error saying “550, File Unavailable“. To solve this, we must…

Continue Reading »

28/12/2014 by Nitesh

How To Delete a File From FTP Server in C#

Friends, In my last post, we saw how can we retrieve the list of all files & folders from a FTP server using C#. In this post, we will see how can we delete a file from FTP server using C# from within your Console or Windows Forms Application. Here’s the code – private string…

Continue Reading »

27/12/2014 by Nitesh

How To List All Files & Directories From a FTP Server in C#

Friends, In this post, we will see how we can retrieve the list of files and directories from a FTP server in C#. We will make use of FtpWebRequest class to perform this action. FtpWebRequest class is defined in System.Net namespace. This means you need to use this namespace at the top of your program…

Continue Reading »