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 wro
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" g
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)
))