This isn't a ClojureScript issue. This program will fail in Node.js as
well. It's a simple program, I would take this question to StackOverflow
(and rephrase your program in JavaScript).

David

On Wed, Mar 4, 2015 at 5:11 PM, <[email protected]> wrote:

> New to cljs, and I'm having trouble using the zlib library. (I'm trying to
> consume events off an aws kinesis stream)
>
> I need to gunzip a buffer, and am trying the current code:
>
>     (.gunzip zlib (js/Buffer. event)
>       (fn [e, res]
>         (if e
>           (throw (js/Error. e))
>           (println "gunziped: " res))))
>
> Which throws the exception: Error: incorrect header check
>
> I know there is a correct gzip header, because I can consumer the same
> buffer off kinesis in Java.
>
> Any help would be greatly appreciated!
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to