【发布时间】:2015-03-22 07:20:43
【问题描述】:
我正在尝试将 JCL txt 文件通过 FTP 传输到大型机:
// Connect to the server
ftp.connect(host);
replyText = ftp.getReplyString();
System.out.println(replyText);
// Log into the server
ftp.login(userId, password);
replyText = ftp.getReplyString();
System.out.println(replyText);
// Tell the server to use the JES interface
ftp.sendSiteCommand("FILETYPE=JES");
replyText = ftp.getReplyString();
System.out.println(replyText);
//read JCL file in input stream
FileInputStream fileStream = new FileInputStream(file);
String originalFileName = "ca7jcl.txt";
ftp.setFileType(FTP.ASCII_FILE_TYPE);
//store the JCL file
ftp.storeFile(host, fileStream);
replyText = ftp.getReplyString();
System.out.println(replyText);
但得到 250-JES 将其称为 *UNKNOWN 我该如何解决这个问题?
【问题讨论】:
-
你能显示你得到的完整输出吗?