I am sending large amount of text in the body of post method. I use Postman for testing that. However its working fine and i can read request body like this:
String text = request().body().asText();
But when i try to send large amount of data in the body i get null for the text. I also tried using the string builder but i also get null.
InputStream is = new ByteArrayInputStream(request().body().asText().getBytes());
BufferedReader br = new BufferedReader(new InputStreamReader(is));
Is there a way to get that fixed??