Upload file in subdirectory

Last post 05-28-2009 12:12 by Blissk. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-28-2009 12:12

    • Blissk
    • Not Ranked
    • Joined on 05-27-2009
    • Posts 1

    Upload file in subdirectory

     After connecting to the server :

    Dim address As String = "server.myserver.com"
    Dim   m_ftp = New FTP(address)

    i need to upload file to the folder that is already there

    But how can I do it?

    If i will write:

    Dim address As String = "server.myserver.com/Anna" -> It is not connecting
    Dim   m_ftp = New FTP(address)

     Dim stream As FileStream = file_info.OpenRead()
     m_ftp.SendFile(stream, "test.txt")
     stream.Close()

     

    I will appreciate any help!! thank you.

     

     

Page 1 of 1 (1 items)