ByteArrayInputStream not required