This would seem like a Java question and not a Tomcat question. -----Original Message----- From: Vikram Goyal [mailto:[EMAIL PROTECTED] Sent: Monday, March 27, 2006 12:47 AM To: users@tomcat.apache.org Subject: InputBuffer and Posting Data
Hi all, I am trying to post some data via an applet to a JSP running on Tomcat 5.5.16. In my applet code, I am setting the following: postConn.setRequestMethod("POST"); postConn.setRequestProperty("Content-Length", (buf.length) + ""); postConn.setRequestProperty("Content-Type", "application/octet-stream"); Now, on the server side, I am retrieving my actual data by using the ServletInputStream gathered from request.getInputStream() method. The connection also contains some query parameters, which I am retrieving on the server side using request.getParameter(). Now, irrespective of the size of the data that I post, the ServletInputStream is truncating the data to a size of 8K (for files greater than that size, smaller files are the received correctly). I understand, after going through the source code, that the Request class uses the InputBuffer class for reading from this stream and the default size of the buffer for this operation is 8K. However, I would have expected this buffer to grow, if the data was larger than this default, but this is not happening. Is there a setting to increase this buffer automatically that I need to set? Alternatively, is there a setting that I need to set that will set the default to a larger value? I have searched and searched and cannot find anything. Thanks, Vikram --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]