This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help--Reading POST data using ServletInputStream

 
k chillar
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , i am trying to read data posted to a servlet using
request.getInputStream();
The problem is the data is coming with special
characters ( + for space etc ).
Can anyone suggest a solution that already exists!
the only way I can think of is read character by character and replace special characters. Is this reliable ?
Thanks for any help
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a particular reason you need to read (and i assume parse) the POST info as a stream?

Won't a nicely packaged 'request' object do ?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic