I read this post but I am not following. I have seen this but have not seen a proper example of converting a ByteArrayInputStream to String using
ByteArrayInputStream
String
Java 9+ solution:
new String(inputStream.readAllBytes(), StandardCharsets.UTF_8);