Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "An Input stream from the request" Watch "An Input stream from the request" New topic

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();

[ September 21, 2008: Message edited by: Bear Bibeault ]

SCJP-5 86%,SCWCD-soon
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2764

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

|Asking Good Questions|
sridhar ponnusamy

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.....
I agree. Here's the link:
subject: An Input stream from the request