• Post Reply Bookmark Topic Watch Topic
  • New Topic

Uses of getInputStream()  RSS feed

 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
Why would somebody use the ServletRequest.getInputStream() method?
I think this might be usefuk to upload files. Any other suggestions?

Thankks,
Reema
 
Chakravarthy Gogineni
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read character data <-> request.getReader()
Read binary data [example: images] <-> request.getInputStream()

You can use any one of these methods to retrieve the request's body.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!