• Post Reply Bookmark Topic Watch Topic
  • New Topic

ServletRequest getInputStream  RSS feed

 
Graham VMead
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the risk of being ridiculed :-) could someone give me a few examples of the types of operations where HttpServletRequest getInputStream would have to be used in a servlet.

The documentation says its for getting binary data, so I assume its for getting hold of files etc.

Would you ever need to use it on a bog standard HTML Form as opposed to getAttribute().
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be useful if you were posting a serialized java object from an applet.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google for a multipart reader example - as you guessed it applies to file uploads.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!