I have a problem with the method response.getOutputStream(), it return a ServletOutputStream, where I want to write some bytes that comes form an InputStream.
I do
    ServletOutputStream out=(response).getOutputStream();
    InputStream datos=resulset.getBinaryStream("datos");
    int c;
    while ((c= datos.read()) != -1)
    {
        out.write(c);
    }
 
But It gives me an extrange Exception:
 
java.lang.IllegalStateException: OutputStream is already being used for this request.
 
Does anyine know something about this?
 
Thansk a lot.
 
Jose Luis

Reply via email to