GeeCON Prague 2014*
The moose likes Servlets and the fly likes An Input stream from the request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "An Input stream from the request" Watch "An Input stream from the request" New topic
Author

An Input stream from the request

chandraiah chintakayalu
Ranch Hand

Joined: Aug 30, 2007
Posts: 32
HI All,
Can anybody explain me what is the use of getInputStream(); with an simple example.

InputStream input = request.getInputStream();

Thanks,
Chandraiah.c
[ September 21, 2008: Message edited by: Bear Bibeault ]

SCJP-5 86%,SCWCD-soon
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

It is used to read binary data from the request, say a PDF or JAR file.


SCJP, SCWCD.
|Asking Good Questions|
sridhar ponnusamy
Greenhorn

Joined: Sep 07, 2008
Posts: 19
which is mainly used for getting large amount of data(other than form data) from request.


scjp 1.5 --> 93%<br />scwcd 1.5 --> preparing.....
 
GeeCON Prague 2014
 
subject: An Input stream from the request