I have written a database application. In that, there is a feature of offsite database backup. I need to upload the database to ftp server.
How can I upload the database to ftp? Can anyone suggest some code that can do this.
Please help and guide.
Printable View
I have written a database application. In that, there is a feature of offsite database backup. I need to upload the database to ftp server.
How can I upload the database to ftp? Can anyone suggest some code that can do this.
Please help and guide.
in .NET 2.0 you can use the FTP Classes. take a look at the documentation and the System.Net namespace
;-)
As Techno says, but more specifically, take a look at the help topic for the FtpWebRequest.GetRequestStream method. It has an appropriate code example.