Transfering bytes to an OutputStream fails
danburkert opened this issue · comments
Dan Burkert commented
byte-streams
does not allow transfering bytes directly to a ByteArrayOutputStream
:
byte-streams=> (transfer "abcd" (java.io.ByteArrayOutputStream.))
IllegalArgumentException Don't know how to convert class [B into clojure.core$bytes@73703457 byte-streams/convert (byte_streams.clj:345)
Is this supposed to work? If I explicitly convert to an InputStream and then transfer it works.
Zach Tellman commented
Yes, it's supposed to work. I'll take a look.
Dan Burkert commented
Thanks!