ServletInputStream « String « JSP-Servlet Q&A





1. Transform ServletInputStream to String    stackoverflow.com

I am trying to get the body of a HttpServletRequest in a String. What's the best elegant way to do so?