Hi
I have a servlet that uses the HttpServletRequest stream, req.getInputStream(),
to write to a file and to process data. The way I understand is that once
you use it the input stream buffer is clear. Is there a way to use one input
stream to do both tasks?

Here is the code.

public class AcceptorWeb extends FWServlet
{
public void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
{

res.setContentType( "text/html" );

writeToFile( req.getInputStream() );
acceptFormData( req.getInputStream() );

}

public void writeToFile(InputStream is) throws Exception
{
}

public void acceptFormData(InputStream is) throws Exception
{
}

}