var stream = request.getInputStream(); var baos = new ByteArrayOutputStream(); byte buff[] = new byte[1024]; int read; while ((read = stream.read(buff)) > 0) { baos.write(buff, 0, read); } var body = baos.toString();
var stream = request.getInputStream(); var baos = new ByteArrayOutputStream(); byte buff[] = new byte[1024]; int read; while ((read = stream.read(buff)) > 0) { baos.write(buff, 0, read); } var body = baos.toString();