I'm so terribly sorry! So obvious!!! Thank you so much...
----- Original message ----- From: "Charles Hudak" <[EMAIL PROTECTED]> To: "Jakarta Commons Users List" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
