ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Creating an FTP Client in .NET
Subject:   error while transferring Excel file
Date:   2006-06-23 06:54:01
From:   flyvansaircraft
Response to: error while transferring Excel file

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.