Hello,
I am downloading a file from the server and saving it to the client disk.
He makes it but gives the following error:
"2001-12-13 08:44:27 - Ctx( /PS2 ):
IllegalStateException in: R( /PS2 + /save.jsp
+ null) OutputStream is already being used for this request"
I don't know what's the problem since i close it.
Here is the code
"FileInputStream fileInput = new FileInputStream(pdf);
int numOfBytes = fileInput.available();
byte byteArray[] = new byte[numOfBytes];
int nextByte = fileInput.read(byteArray);
fileInput.close();
OutputStream outStream = res.getOutputStream();
outStream.write(byteArray);
outStream.close();"
Can you help me?
Thanks
Claudia