wrote:
> I keep getting this error using Eclipse and Tomcat. I went over my
> code a 100 times and I do not close the output stream or do I make more
> than one call here is my code.
>
snip
> // write to resp stream
> while((sizeRead = inStream.read(buf, 0 , buf.length)) > 0) {
> outStream.write(buf, 0 , buf.length);
>
Your code would write _outputFile.length() % 8192 more bytes that the
content length specified.
It should be:
while((sizeRead = inStream.read(buf, 0 , buf.length)) > 0) {
outStream.write(buf, 0 , sizeRead)
-Misk