File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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: 2851

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
It's not a secret anymore!