stream « Convert « JSP-Servlet Q&A





1. convert servletinputstream to sequenceinputstream    stackoverflow.com

I'm receiving servlet which contains inputstream.

InputStream input=req.getInputStream();
When i type cast the inputstream to sequenceinputstream i ended up with ClassCastException org.apache.catalina.connector.CoyoteInputStream cannot be cast to java.io.SequenceInputStream. Please provide solution