how to FTP files in C# .NET 1.1 ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shyamnsankar
    New Member
    • Mar 2010
    • 2

    how to FTP files in C# .NET 1.1 ?

    Hi,

    Could anyone please tell me how to FTP files in C# .NET 1.1 ? I successfully FTP ied text documents which was in .txt format. This was by using a ftp.dll which I found in the internet. But when I try to transfer pdf file it shows error !! Please help !
  • shyamnsankar
    New Member
    • Mar 2010
    • 2

    #2
    Hi

    I FTPied the txt files using the following code :

    Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology


    Thanks
    Shyam

    Comment

    • regalis
      New Member
      • Mar 2010
      • 9

      #3
      The answer is located in the comments on the given webpage:
      error while transferring Excel file
      2006-06-23 06:54:01 flyvansaircraft [Reply | View]

      I too have encountered this issue. It is a common problem with the MS socket (such that they don't provide a parameter for file types). The way I worked around this is to be sure you are in Binary mode e.g. this.BinaryMode = true; before calling the SendCommand or reader/writer functions. Same for downloading. Beyond that, I had no other problem.
      greetz

      Comment

      Working...