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 <[email protected]> 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 [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en