On Wed, May 16, 2012 at 02:15:59AM +0200, Raju Bitter wrote:
> What is the best way to write an FilterInputStream or InputStream do
> disk? I'm downloading a file using the clj-http library:
> 
> (:body (client/get
> "http://www.openlaszlo.org/pipermail/laszlo-dev/2012-May.txt.gz"; {:as
> :stream})
> 
> That returns the response body as a FilteredInputStream, which I need to save.
> 
> Thanks,
> Raju

I'd use clojure.java.io/copy:

http://richhickey.github.com/clojure/clojure.java.io-api.html#clojure.java.io/copy

Robert

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to