Posted on: 9/1/2014 11:22:36 AM | Views : 511

My project uploads files to different ftp servers.  Part of the code included, let me know if you need more details.
Dim state As New FtpState Dim request As FtpWebRequest = DirectCast(WebRequest.Create(target), FtpWebRequest) request.Method = WebRequestMethods.Ftp.UploadFile request.Credentials = mycredentials state.Request = request state.FileName = fileName ' Get the event to wait on. waitObject = state.OperationComplete ' Asynchronously get the stream for the file contents. request.BeginGetRequestStream(New AsyncCallback(AddressOf EndGetStreamCallback), state) ' Block the current thread until all operations are complete. waitObject.WaitO ...

Go to the complete details ...