Re: Writing binary data using http.agent and duck-streams

2009-10-26 Thread Stuart Sierra
On Oct 23, 2:16 pm, Baishampayan Ghose wrote: > Is there any way to use duck-streams to write data as binary? No, duck-streams only does text. For binary I/O, you need the InputStream and OutputStream classes. -SS --~--~-~--~~~---~--~~ You received this message

Re: Writing binary data using http.agent and duck-streams

2009-10-24 Thread Rob Wolfe
Baishampayan Ghose writes: > Hello, > > I was trying to download a zip file using clojure.contrib.http.agent and > writing it to a file using clojure.contrib.duck-streams. > > Apparently the zip file is getting corrupt because I was trying to treat > the stream as a string. > > Is there any way