Jeff
I set the following transfer Props immediately after connect:
client.setFileType(FTPClient.IMAGE_FILE_TYPE);
client.setFileStructure(FTPClient.FILE_STRUCTURE);
Tom
-----Urspr�ngliche Nachricht-----
Von: Jeff Barrett [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 22. Januar 2003 19:57
An: Jakarta Commons Developers List
Betreff: RE: [COMMONS-NET]Can't open uploaded file after download
Did you transfer it in ascii mode? Try this before getting the file:
FtpClient.setFileType( FTP.BINARY_FILE_TYPE );
> -----Original Message-----
> From: Thomas H�sler [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 22, 2003 10:51 AM
> To: Jakarta Commons User List (E-Mail)
> Subject: [COMMONS-NET]Can't open uploaded file after download
>
>
> Hi all
>
> I am uploading a file with the class
> org.apache.commons.net.ftp and download
> it after. The transfer seems to work perfectly. As long as
> the transfered
> files are of file type, I can also reopen them, but as soon
> as I take a
> complex format like ".doc" or ".jpg" the files can't be
> opened anymore.
>
> Does anyone has a clou what I am doing wrong?
>
> Cheers Tom
>
> ------------------------------------------------------------------
> Thomas H�sler * TietoEnator Consulting AG
> Industriestrasse 19 * 8304 Wallisellen * Switzerland
> Tel. +41 (43) 233 45 28 * Fax +41 (43) 233 45 10
> Mobile +41 (78) 622 03 36
> <mailto:[EMAIL PROTECTED]>
> http://www.tietoenator.ch
>
>
>
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>