Closed nesteiner closed 4 years ago
While I don't mind answering some questions, the Ring issue tracker should mainly be reserved for issues with Ring, rather than basic usage questions. Instead, I'd recommend asking questions on the Clojurians Slack channel, or the Ring Google Group, or the Clojure Google Group, or /r/clojure.
In your case, the problem you have is that you want to return a file, and not a resource. The file-response
function is what you want. A resource exists on the Java classpath, and is typically something you'd place in the resources
directory of your project.
Here I have a file named "1.jpg" in "/home/steiner/picture/",then I use
however it returns nil
what about :root option??
still nil also this is useless too
what's the wrong with my operation??