commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Charles Huey" <stephenh...@fastmail.fm>
Subject RE: FTPClient corrupting zip files?
Date Thu, 26 Aug 2004 21:12:24 GMT
I'm so terribly sorry!  So obvious!!!  Thank you so much...


----- Original message -----
From: "Charles Hudak" <charles.hudak@cardionet.com>
To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
Date: Thu, 26 Aug 2004 11:51:05 -0700
Subject: RE: FTPClient corrupting zip files?

Are you setting the filetype to FTP.BINARY_FILE_TYPE???

> -----Original Message-----
> From: Stephen Charles Huey [mailto:stephenhuey@fastmail.fm] 
> Sent: Thursday, August 26, 2004 11:40 AM
> To: Commons Net User list
> Subject: FTPClient corrupting zip files?
> 
> 
> We've got a bad problem with a zip file we're trying to 
> upload using FTPClient.  We're not even sure it's with 
> FTPClient, but it's one of the two possibilities.  Basically, 
> when we upload a zip file to the FTP server, then someone on 
> that end gets an error when trying to extract it with pkunzip:
> 
> extra 137 bytes at beginning or within Zip file (attempting to process
> anyway)
> Error in file #1:  bad Zip file offset (Error local header 
> signature not
> found):  0
> (attempting to re-compensate)
> Extracting BG040825.NAS
> Error:  invalid compressed data to inflate
> 
> 
> They don't get this error when we upload the zip file via 
> some other means.  Is there any chance that FTPClient could 
> be adding extra bytes to the file?  Here is my relevant code:
> 
> 
> in = new FileInputStream(toUpload); 
> ftpClient.storeFile(toUpload.getName(), in); in.close();
> 
> 
> Nothing crazy!  And I'm catching FTPConnectionClosedException 
> and IOException.  Any ideas?  
> 
> Thanks,
> Stephen
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 

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


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