clj-commons / byte-streams

A Rosetta stone for JVM byte representations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transfering bytes to an OutputStream fails

danburkert opened this issue · comments

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.

Yes, it's supposed to work. I'll take a look.

Thanks!