From 61ba951be0c1c6612cfed24c8113b1a9905c1436 Mon Sep 17 00:00:00 2001 From: Dmytro Sylaiev Date: Wed, 7 Mar 2018 18:30:36 +0200 Subject: [PATCH] fix(TDI-40206): Enter binary mode ftps ftpFileProperties (#2051) --- .../tFTPFileProperties/tFTPFileProperties_begin.javajet | 1 + 1 file changed, 1 insertion(+) diff --git a/main/plugins/org.talend.designer.components.localprovider/components/tFTPFileProperties/tFTPFileProperties_begin.javajet b/main/plugins/org.talend.designer.components.localprovider/components/tFTPFileProperties/tFTPFileProperties_begin.javajet index a71a5576b49..c18f7e54496 100644 --- a/main/plugins/org.talend.designer.components.localprovider/components/tFTPFileProperties/tFTPFileProperties_begin.javajet +++ b/main/plugins/org.talend.designer.components.localprovider/components/tFTPFileProperties/tFTPFileProperties_begin.javajet @@ -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) {