Howdy,
If I were you, Senor Griesbach, I would dump COS in favor of jakarta commons 
fileupload instead of spending significant time debugging intricate input stream 
problems...  But that's just me, and I'm not a patient debugger ;)

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Dirk Griesbach [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 05, 2003 5:57 AM
>To: Tomcat Users List
>Subject: Re: TC 4 <-oreillyMultipart-> TC5: Corrupt form data: premature
>ending
>
>Hello Rémy,
>
>> Dirk Griesbach wrote:
>> > Rémy,
>> >
>> > how would you have done it ?
>> > Maybe there can be applied a fix to it.
>>
>> You could add a sys.out in their readLine() method to see what is
>> actually being read :)
>
>you hit my thoughts thinking on debugging (:-)),
>but we now know that this causes trouble somehow
>so it's worth thinking how to do it differently.
>Instead of using the 'ServletInputStream' and instead
>of using the 'readLine()' Method (which is the only one within this class)
>reading multipart stream byte-by-byte.
>
>Reading bytewise is essential, I think, beacuse mostly uploaded data is of
>binary content.
>
>So do you have a suggestion how to avoid the 'readLine()'-thing being more
>performant ?
>
>regards
>
>grisi
>>
>> --
>> xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Rémy Maucherat
>> Senior Developer & Consultant
>> JBoss Group (Europe) SàRL
>> xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to