Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 82668 invoked from network); 26 Aug 2004 18:51:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Aug 2004 18:51:20 -0000 Received: (qmail 88314 invoked by uid 500); 26 Aug 2004 18:51:13 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 88228 invoked by uid 500); 26 Aug 2004 18:51:13 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 88214 invoked by uid 99); 26 Aug 2004 18:51:12 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [12.22.207.132] (HELO sd-eng-srv3.SD.cardionet.com) (12.22.207.132) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 26 Aug 2004 11:51:10 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: FTPClient corrupting zip files? Date: Thu, 26 Aug 2004 11:51:05 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FTPClient corrupting zip files? Thread-Index: AcSLnCZr7zSDqQzJS9ukStYjcV7TdAAAWf9Q From: "Charles Hudak" To: "Jakarta Commons Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Are you setting the filetype to FTP.BINARY_FILE_TYPE??? > -----Original Message----- > From: Stephen Charles Huey [mailto:stephenhuey@fastmail.fm]=20 > Sent: Thursday, August 26, 2004 11:40 AM > To: Commons Net User list > Subject: FTPClient corrupting zip files? >=20 >=20 > We've got a bad problem with a zip file we're trying to=20 > upload using FTPClient. We're not even sure it's with=20 > FTPClient, but it's one of the two possibilities. Basically,=20 > when we upload a zip file to the FTP server, then someone on=20 > that end gets an error when trying to extract it with pkunzip: >=20 > extra 137 bytes at beginning or within Zip file (attempting to process > anyway) > Error in file #1: bad Zip file offset (Error local header=20 > signature not > found): 0 > (attempting to re-compensate) > Extracting BG040825.NAS > Error: invalid compressed data to inflate >=20 >=20 > They don't get this error when we upload the zip file via=20 > some other means. Is there any chance that FTPClient could=20 > be adding extra bytes to the file? Here is my relevant code: >=20 >=20 > in =3D new FileInputStream(toUpload);=20 > ftpClient.storeFile(toUpload.getName(), in); in.close(); >=20 >=20 > Nothing crazy! And I'm catching FTPConnectionClosedException=20 > and IOException. Any ideas? =20 >=20 > Thanks, > Stephen >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org