[Net] Corrupt file when using FTP

2005-07-04 Thread David Leangen
Hello! I'm using FTP as described below. However, when transferring a zip file, although everything appears to go well with FTP (no exceptions thrown and all 2xx codes), when trying to open the file afterwards, I get errors such as: Error: Unexpected end of file Error: File corrupt Am I doing

Re: [Net] Corrupt file when using FTP

2005-07-04 Thread Christian Hufgard
Hello David, think you should set the file type before sending the file: replace m_ftpClient.retrieveFile(remoteFile, out); with m_ftpClient.setFileType(FTP.BINARY_FILE_TYPE); m_ftpClient.retrieveFile(remoteFile, out); Think this might work. greets christian Monday, July 4, 2005,

Re: [Net] Corrupt file when using FTP

2005-07-04 Thread Jose Antonio Perez Testa
m_ftpClient.setFileType(FTP.BINARY_FILE_TYPE); David Leangen wrote: Hello! I'm using FTP as described below. However, when transferring a zip file, although everything appears to go well with FTP (no exceptions thrown and all 2xx codes), when trying to open the file afterwards, I get errors

Re: [Net] Corrupt file when using FTP

2005-07-04 Thread Wendy Smoak
From: David Leangen [EMAIL PROTECTED] I'm using FTP as described below. However, when transferring a zip file, although everything appears to go well with FTP (no exceptions thrown and all 2xx codes), when trying to open the file afterwards, I get errors such as: Error: Unexpected end of file

RE: [Net] Corrupt file when using FTP

2005-07-04 Thread David Leangen
Thank you for the very fast replies!! That did the trick. :-) -Original Message- From: Christian Hufgard [mailto:[EMAIL PROTECTED] Sent: 5 July 2005 01:51 To: Jakarta Commons Users List; [EMAIL PROTECTED] Subject: Re: [Net] Corrupt file when using FTP Hello David, think