fix(TDI-40206): Enter binary mode ftps ftpFileProperties (#2051)

This commit is contained in:
Dmytro Sylaiev
2018-03-07 18:30:36 +02:00
committed by GitHub
parent 84a1442422
commit 61ba951be0

View File

@@ -276,6 +276,7 @@ if (sftp) { // *** sftp *** //
throw new RuntimeException("Login failed");
}
ftp_<%=cid %>.setFileType(org.apache.commons.net.ftp.FTP.BINARY_FILE_TYPE); //to calculate md5 for binary files correctly
ftp_<%=cid %>.execPROT(<%=protectionLevel %>);
ftp_<%=cid %>.execPBSZ(<%=protectionBufferSize %>);
} catch (Exception e) {