clj-http

astrashe 2018-07-06T17:31:34.000043Z

I apologize for asking such a simple question. But how do you use clj-http to download a binary file? I keep getting byte-arrays with 0 bytes in them. For example, if I do this, I get a response that looks OK: (client/get "<https://upload.wikimedia.org/wikipedia/en/a/a9/Example.jpg>" {:as :byte-array}) But then if I do this, I get 0 back: (count ((client/get "<https://upload.wikimedia.org/wikipedia/en/a/a9/Example.jpg>" {:as :byte-array}) :body))