PDA

Click to See Complete Forum and Search --> : Uploding files to ftp


engineer
Aug 24th, 2006, 01:47 PM
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.

Techno
Aug 24th, 2006, 05:35 PM
in .NET 2.0 you can use the FTP Classes. take a look at the documentation and the System.Net namespace
;-)

jmcilhinney
Aug 24th, 2006, 06:03 PM
As Techno says, but more specifically, take a look at the help topic for the FtpWebRequest.GetRequestStream method. It has an appropriate code example.