Replaced ByteInputStream with ByteArrayInputStream

ByteInputStream is an internal class and won’t compile with maven.