tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Adams" <b...@satx.rr.com>
Subject RE: com.oreilly.servlet and damaged files
Date Sun, 10 Feb 2002 01:25:11 GMT
I bet it is the connector!
run tomcat as stand alone (port 8080 by default) and access the servlet
without using apache and I bet money it will work!
:)
goodluck

-----Original Message-----
From: Reini [mailto:reini@callooh.com]
Sent: Saturday, February 09, 2002 10:00 PM
To: tomcat-user@jakarta.apache.org
Subject: com.oreilly.servlet and damaged files



I use com.oreilly.servlet Multipartrequest  (cos, version from June,
19th. 2001) with Tomcat 4.0.1 + mod_webapp + apache 1.3.22  (tested on
different machines, Redhat 7.x and Freebsd 4.4, same behaviour) to
upload files.

While uploads of text-files are ok, uploads of jpg or gif files result
in damaged files. The size of the uploaded files is about 1 % smaller
than the original files.

example of a jpg file:

original:
[..]
ÿØÿà^@^PJFIF^@^A^A^A^@`^@`^@^@ÿÛ^@C^^F^F^G^F^^G^G^G
^L^T^M^L^K^K^L^Y^R^S^O^T^]^Z^_^^^]^Z^\^\ $.'
",#^\^\(7),01444^_'9=82<.342ÿÛ^@C^A.
.
[..]

uploaded file:
[..]
Øà^@^PJFIF^@^A^A^A^@`^@`^@^@Û^@C^^F^F^G^F^^G^G^G
^L^T^M^L^K^K^L^Y^R^S^O^T^]^Z^_^^^]^Z^\^\ $.'
",#^\^\(7),01444^_'9=82<.342Û^@C^A.
.
[..]

(note the missing 'ÿ' in the uploaded file)
I experimented with settins of different character-encodings, without
result.

Anybody has any ideas how to fix this ?

~reini



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message