You are setting the page buffer size to 200kb and also setting the autoflush to false. Also when you are reading from file you are reading in bytes and converting that to int. Now this int is larger in size than that of a byte that you are converting. As you are reading one byte and converting to int the out variable gets filled more quickly than you expect (as size of int is larger than that of a byte). Try to print the bytes directly to ouput.
Hope this helps.
Joined: May 18, 2005
<%-- The size of file parul.txt is <200kb. Then why the exception --%>
I have increased the buffer size (500kb) which is more than 3 times the size of file(135kb) . Also now i am reading characters and writing them to output steam. Still i am getting the same exception : java.io.IOException: Error: JSP Buffer overflow