Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 31708 invoked from network); 5 Oct 2010 16:50:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Oct 2010 16:50:09 -0000 Received: (qmail 71481 invoked by uid 500); 5 Oct 2010 16:50:08 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 71357 invoked by uid 500); 5 Oct 2010 16:50:07 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 71349 invoked by uid 99); 5 Oct 2010 16:50:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 16:50:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brian@pontarelli.com designates 209.85.212.171 as permitted sender) Received: from [209.85.212.171] (HELO mail-px0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 16:49:59 +0000 Received: by pxi19 with SMTP id 19so1799245pxi.30 for ; Tue, 05 Oct 2010 09:49:38 -0700 (PDT) Received: by 10.114.46.14 with SMTP id t14mr10338482wat.198.1286297378035; Tue, 05 Oct 2010 09:49:38 -0700 (PDT) Received: from [10.1.10.46] (c-76-120-42-168.hsd1.co.comcast.net [76.120.42.168]) by mx.google.com with ESMTPS id d2sm11713303wam.14.2010.10.05.09.49.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 05 Oct 2010 09:49:37 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: [Fileupload] Missing character in the middle of a file From: Brian Pontarelli In-Reply-To: <4CAA3EBB.9070703@christopherschultz.net> Date: Tue, 5 Oct 2010 10:49:34 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5072416F-08B7-4EB7-A181-B432DE17EF6B@pontarelli.com> <4CAA3EBB.9070703@christopherschultz.net> To: "Commons Users List" X-Mailer: Apple Mail (2.1081) X-Virus-Checked: Checked by ClamAV on apache.org I'm heading out for a business trip today, so I might go silent on this = thread for a week or so. I'll try to post code when I get a chance and = see if I can figure it out. I haven't tried additional files yet, mostly = because it should work for any file in the universe. I'll try a few = others though to see if it happens the same way with those. -bp On Oct 4, 2010, at 2:53 PM, Christopher Schultz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Brian, >=20 > On 10/4/2010 11:43 AM, Brian Pontarelli wrote: >> I figured that the original File and the File written out by the >> FileUpload would have different bytes at the start or end and it was >> my mock input stream that was causing the issue. To test this theory >> I opened both files in a HEX editor. What I found was that the files >> differ by one a single byte and that byte is at position 305. The >> other interesting thing I found was that the byte that exists in the >> original and is missing from the FileUpload file is 'FF'. >=20 > That's weird. Is the missing byte always at position 305? What variety > of "test" files have you tried? Is it always 0xff that gets discarded? >=20 > Could you post some of your test driver code, and some of the servlet > code so we can see how they interact? >=20 > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ >=20 > iEYEARECAAYFAkyqPrsACgkQ9CaO5/Lv0PDSEwCgsGgMyClImZ0FxlN1WwbOfkkF > u6AAn1j+AJKZ/QH5SjcZ6wKp8jMAsyVi > =3DCPV2 > -----END PGP SIGNATURE----- >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org