Well, it's a shame that the servlet specification has no clear way to do this if the image is not under the webapp tree. Servlet containers are generally not advised to use their own methods. Obviously, a container needs to do this to serve files, why doesn't it reveal functionality? Why not HttpServletResponse.sendFile(File)?
, webapp.