Alas no, ByteArrayInputStream requires the underlying byte array in its ctor.