Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 21135 invoked from network); 4 Oct 2010 20:53:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Oct 2010 20:53:49 -0000 Received: (qmail 71072 invoked by uid 500); 4 Oct 2010 20:53:48 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 70859 invoked by uid 500); 4 Oct 2010 20:53:47 -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 70851 invoked by uid 99); 4 Oct 2010 20:53:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 20:53:47 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.59.227] (HELO qmta12.westchester.pa.mail.comcast.net) (76.96.59.227) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 20:53:38 +0000 Received: from omta15.westchester.pa.mail.comcast.net ([76.96.62.87]) by qmta12.westchester.pa.mail.comcast.net with comcast id Eb561f0011swQuc5CktH4T; Mon, 04 Oct 2010 20:53:17 +0000 Received: from [192.168.1.202] ([69.143.109.145]) by omta15.westchester.pa.mail.comcast.net with comcast id EktH1f00438FjT13bktHB3; Mon, 04 Oct 2010 20:53:17 +0000 Message-ID: <4CAA3EBB.9070703@christopherschultz.net> Date: Mon, 04 Oct 2010 16:53:15 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Commons Users List Subject: Re: [Fileupload] Missing character in the middle of a file References: <5072416F-08B7-4EB7-A181-B432DE17EF6B@pontarelli.com> In-Reply-To: <5072416F-08B7-4EB7-A181-B432DE17EF6B@pontarelli.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Brian, 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'. 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? Could you post some of your test driver code, and some of the servlet code so we can see how they interact? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyqPrsACgkQ9CaO5/Lv0PDSEwCgsGgMyClImZ0FxlN1WwbOfkkF u6AAn1j+AJKZ/QH5SjcZ6wKp8jMAsyVi =CPV2 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org