----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
HI, All:
I find the solution I asked. Because I use ServletInputStream to directly
read specified length bytes, but due to some reasons, the servlet did not
get all data in inputStream,so the data I got include some null characters.
I try to use BufferedInputStream, it is successful.
Cheers,
Boxin Dai
Software Designer
Infospace
3026 Solandt Road Tel: (613) 270-5452
Kanata, Ontario Cell: (613) 261-5552
Canada K2K 2A5 Fax: (613) 765-5411
www.infospace.com Email: [EMAIL PROTECTED]
-----Original Message-----
From: Boxin Dai [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 12, 2000 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: the problem with Servlet InputStream
----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hi, All:
Recently I upgrade JServ1.0 to JServ1.1.2. Original it is work fine. But now
when the client POST a big file(XML data), Something is wrong. In servlet I
try to read POST data, I find if file is small, it is OK, if file is large,
from inputStream, I find the beginning part of data is correct, from some
points, the data is wrong. In fact, I can not recognize the data. Does
anyone meet this problem or know how to solve it? Thanks.
Boxin Dai
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]