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]>