Is there any problem with my code ?
ServletInputStream in = request.getInputStream();
int ch =0;
while ((ch = in.read()) != -1)
System.out.print((char)ch);
I got the the exception
java.io.InterruptedIOException: Read timed out
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
Please advice
| Venu Gopal <[EMAIL PROTECTED]>
Sent by: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]> 06/28/02 01:56 PM
|
To: [EMAIL PROTECTED] cc: Subject: Re: ServletInputStream ? ? ? |
Hi JWAS,
We use InputStream() to read binary data .. if broser sent HTTP POST (basically XML data)data.. without submiting HTML form (full page.)
cheers,
venu
Venugopal MN
Sr.Software Engg.
ZenSutra Software Technologies Pvt. Ltd.
Suite 601, HM Geneva House
#14, Cunningham Road
Bangalore 560-052, India
Ph:+91-80-235-0481
Fax:+91-80-235-0486
Email: [EMAIL PROTECTED]
'weaving the knowledge tapestry'
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of [Jwas J]
Sent: Friday, June 28, 2002 1:08 AM
To: [EMAIL PROTECTED]
Subject: ServletInputStream ? ?
Hello
Can any one tell me Whats the use of request.getInputStream() ?
I know that it retrieves the body of the request as binary data using a
ServletInputStream. In practical where is it used
I tried to use that but server is hanging (throwing ). I dont know why
This is the code i have used
ServletInputStream in = request.getInputStream();
int ch =0;
while ((ch = in.read()) != -1)
System.out.print((char)ch);
I got the the exception
java.io.InterruptedIOException: Read timed out
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
Please advice
Regards
Jwas
