commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Leangen" <dlean...@canada.com>
Subject RE: [Net] Corrupt file when using FTP
Date Mon, 04 Jul 2005 17:19:17 GMT

Thank you for the very fast replies!!

That did the trick. :-)



> -----Original Message-----
> From: Christian Hufgard [mailto:christian.hufgard@gmx.de]
> Sent: 5 July 2005 01:51
> To: Jakarta Commons Users List; dleangen@canada.com
> Subject: Re: [Net] Corrupt file when using FTP
> 
> 
> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message