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) {