java.io.ByteArrayInputStream to byte