Apache Commons VFS / SFTPを使用していますが、IBMMVSシステムからファイルをダウンロードしようとしています。
ダウンロード部分はすべて良好ですが、ダウンロード後にzipファイルを開くことはできません。zipファイルが別のアルゴリズムなどを使用して圧縮されたようです
誰かがポインタを持っていますか?
*通常のunix/linux SFTPサーバーに接続すると、同じ機能が正常に機能することに注意してください。
以下は私たちがしたことの例です
String defaultHost = "[my sftp ip address]";
String host = defaultHost;
String defaultRemotePath = "//__root.dir1.dir2.";
String remotePath = defaultRemotePath;
String user = "test";
String password = "test";
String remoteFileName = "Blah.ZIP.BLAH";
log.info("FtpPojo() begin instantiation");
FileObject localFileObject = fsManager.resolveFile("C:/Work/Blah.ZIP.BLAH");
log.debug("local file name is :"+localFileObject.getName().getBaseName());
log.debug("FtpPojo() instantiated and fsManager created");
String uri = createSftpUri(host, user, password) + ":322"+remotePath+remoteFileName;
remoteRepo = fsManager.resolveFile(uri, fsOptions);
remoteRepo.copyFrom(localFileObject, Selectors.SELECT_ALL);