-
-
Save tomjack/6fe33dc93b1b15634245 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clj-gunzip.core> (let [gzipped (java.io.ByteArrayOutputStream.) | |
gunzipped (java.io.ByteArrayOutputStream.)] | |
(gzip (io/input-stream (.getBytes "foo")) gzipped) | |
(gunzip (io/input-stream (.toByteArray gzipped)) gunzipped) | |
(String. (.toByteArray gunzipped))) | |
"foo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment