Reputation: 163
The POST Message response that is returned from the server to my Android app is an essay. The String datatype unfortunately cannot store the entire essay.
Can you suggest a data-type i can use like this:
HttpResponse response = httpclient.execute(httppost);
HttpEntity resEntity = response.getEntity();
String result = EntityUtils.toString(resEntity);
when i System.out.println(result)
it doesn't show me the entire essay.
Upvotes: 0
Views: 11776
Reputation: 1291
I don't think that this is String
size problem.
Eg.
An A4 page covered with characters stores about 5000 characters. Acording to this, the maximum length of String
is 2147483647 characters.
2147483647/5000 = 429496 pages
The Encyclopædia Britannica has 32640 pages and about 44000000 words with average 6.1 characters per word.
Why are you trying to send 8 Encyclopædias?
Upvotes: 9