Building FTP Services Using .NET 2.0
Subject:   Invalid characters in FTP
Date:   2008-01-06 20:24:55
From:   coolninja01
Hi all

The file did successfully been transferred over. However, I'm facing invalid characters in the Ftp file. Each line has addition characters, ^M.
It appears that this represent new line feed.
If we will to set ASC file transfer in ftp command line, these characters will not appear.

I have tried to ASCII encoding,
Dim b() As Byte = System.Text.Encoding.ASCII.GetBytes(stream.ReadToEnd())
but it did not work.

Pls advise how to remove these invalid characters or is there a way to set to ASC in the .Net