Posted on: 4/9/2014 1:08:42 AM | Views : 443

I am trying to downlod using ftp.  I am using ASP.net 4.0.
Try Dim ftpRequest As FtpWebRequest = Nothing Dim ftpResponse As FtpWebResponse = Nothing Dim ftpStream As Stream = Nothing Dim bufferSize As Integer = 2048 ftpRequest = DirectCast(FtpWebRequest.Create("ftp://philosophaie.com/file.txt"), FtpWebRequest) ftpRequest.Credentials = New NetworkCredential("ftp000-0", "pass101") ftpRequest.UseBinary = True ftpRequest.UsePassive = True ftpRequest.KeepAlive = True ftpRequest.Method = WebRequestMethods.Ftp.DownloadFile ftpResponse = DirectCast(ftpRequest.GetResponse(), FtpWebResponse) ftpStream = ftpResponse.GetResponseStream() Dim localFileStream As New FileStream("file.txt", FileMode.Create) Dim byteBuffer As Byte() = Ne ...

Go to the complete details ...