I am getting JSON response and storing in inputstream. When converting it into string it is showing ... after certain string length if size is greater.
I converted the inputstream to ByteArrayOutputStream to check out size. Following is the code
HttpEntity entity = response.getEntity();
inputStream = entity.getContent();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
int reads = inputStream.read();
while (reads != -1) {
baos.write(reads);
reads = inputStream.read();
}
int length = baos.toByteArray().length;
The length is coming out to be 22653 and baos is having {"id":"772","co...
Can you please suggest how to handle this scenerio.