See [1] for this morning's response to a very similar question ;)
There is also a group for Noir-specific questions at [2].

[1] https://groups.google.com/forum/#!msg/clj-noir/mT8L2hnMnNg/jRJ2UdOqKuQJ
[2] https://groups.google.com/forum/#!forum/clj-noir


On Fri, Apr 13, 2012 at 11:10 AM, Rups <rupstare2...@gmail.com> wrote:
> My download code is like this which reads file from mongodb. but it not
> downloaded original file.
>
> (defpage [:get "/download"] {:as values}
>  (let [f (fetch-one-file :test3)
>        stream (stream-from :test3 f)
>        data (slurp stream)]
>        (resp/content-type (:contentType f) data)
>           ))
>
>
>
>
> On Fri, Apr 13, 2012 at 6:56 PM, Rups <rupstare2...@gmail.com> wrote:
>>
>> Hi...
>>
>>        I am using a noir,
>>        I like to download a file on click event.
>>        I have a file object in binary formate.
>>        How i write code for response for download file in its original
>> formate.
>
>
> --
> 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

-- 
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