|
I'm trying to FTP to mainframe. But I got the following error message: "Name length error for pathname ftp://ps2.lac.com//'HRUNT.PER.EEF.DE34.ACK.DDATA(+1)' (550)." What is the correct path name to use if I want to FTP to Mainframe? Here is the code:
|
|
The Try to construct ftpfullpath just with the following value:
or:
or only:
string ftpfullpath = String.Format("//{0}", MainframeName); works But the file sent as binary. How do I specify the file sent as text file?
(14 Apr '11, 01:20)
hhzhu
1
The Ftp class default transfer mode is binary. To upload file in ASCII format try setting the TransferType property to FtpTransferType.Ascii first. For an example see http://forum.rebex.net/questions/728/sending-file-in-ascii-format
(14 Apr '11, 08:39)
Jan Sotola ♦♦
|