clj-commons / byte-streams

A Rosetta stone for JVM byte representations
417 stars 33 forks source link

Transfering bytes to an OutputStream fails #6

Closed danburkert closed 11 years ago

danburkert commented 11 years ago

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.

ztellman commented 11 years ago

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

danburkert commented 11 years ago

Thanks!