In my servlet, I have the following code:
BufferedReader br = request.getReader();
char[] buff = new char[request.getContentLength()];
int i = br.read(buff);
The length of buff is 55453 but the value of i is 7618, any idea why this is getting cut off?
The BufferedReader seems to read only a part of the request. Try something like this:
So 7618 seems to be the size of the buffer you get from your request object.