Dim FTPRequest As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://something.ueuo.com/Uploaded.txt"), System.Net.FtpWebRequest)
FTPRequest.Credentials = New System.Net.NetworkCredential(FtpUsername, FtpPassword)
FTPRequest.Method = System.Net.WebRequestMethods.Ftp.UploadFile
Dim File() As Byte = System.IO.File.ReadAllBytes("C:\Test.txt")
Dim FTPStream As System.IO.Stream = FTPRequest.GetRequestStream()
FTPStream.Write(File, 0, File.Length)
FTPStream.Close()
FTPStream.Dispose()
But it takes about 2-3 minutes for the server to make it available on http://
What i mean is that when i upload the file and then login to account managment --> file managment i can choose to edit Uploaded.txt

but if you type the adress "http://something.ueuo.com/Uploaded.txt" the file has still data from a previous upload

The actuall file is not uploaded.txt but something like nixzpcnixz.12312...
how can i "ftp download" ???
This post has been edited by NIXZ: 07 January 2009 - 05:29 AM

New Topic/Question
Reply
MultiQuote


|