Fork me on GitHub
#yada
<
2015-11-07
>
stijn09:11:53

serving files from MongoDB GridFS is as easy as

(extend-protocol MessageBody
  GridFSDBFile

  (to-body [file _] (BufferedInputStream. (.getInputStream file)))
  (content-length [file] (.getLength file)))