Uploading Data Using FTP

In the previous section, we used the FTP class to download files from our local FTP server and store them locally. It would have been just as easy to download the files from a remote FTP Server and store them on any network-reachable server share.

Another situation that might arise is where files that are accessible by a service are required on a remote server that is only accessible through the FTP protocol. Files stored on the FTP server might have been generated by our service, a database server that exports data, or another process capable of generating file output.

Updating the FTP Class

The nice thing is that our FTP class already has the ability to send files via FTP to a local or remote server. However, it currently ...

Get Programming Windows® Services with Microsoft® Visual Basic® 2008 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.