The byte-transforms library will also take care of the gzip stuff for
you: https://github.com/ztellman/byte-transforms
On Thursday, October 10, 2013 10:26:35 PM UTC-4, Brian Craft wrote:
>
> I like the blurb:
>
> "This library is a Rosetta stone for all the byte representations Java has
> to off
I like the blurb:
"This library is a Rosetta stone for all the byte representations Java has
to offer, and gives you the freedom to forget all the APIs you never wanted
to know in the first place."
My feelings, exactly. ;)
Thanks.
On Thursday, October 10, 2013 6:44:32 PM UTC-7, Ben Mabey wrot
On 10/10/13 7:21 PM, Brian Craft wrote:
I'm struggling with how to gzip/gunzip byte arrays from clojure. I
don't really get how clojure.java.io streams supposed to be used.
This appears to gzip a string:
(let [baos (java.io.ByteArrayOutputStream.)
gzos (java.util.zip.GZIPOutputStream. ba
I'm struggling with how to gzip/gunzip byte arrays from clojure. I don't
really get how clojure.java.io streams supposed to be used.
This appears to gzip a string:
(let [baos (java.io.ByteArrayOutputStream.)
gzos (java.util.zip.GZIPOutputStream. baos)]
(.write gzos (.getBytes "foo"))