commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [Fileupload] Missing character in the middle of a file
Date Mon, 04 Oct 2010 20:53:15 GMT
-----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


Mime
View raw message