Hi, On 11/1/07, Ryan Bales <[EMAIL PROTECTED]> wrote: > What is the best way to display an image stored within the repository on a > website. I have been trying to find some examples of this but haven't had > any luck. It would be greatly appreciated if someone could kindly show me an > example servlet that handles binary and sets the correct mime type along > with how I can run a xpath query and display it within jsp.
The best way is probably to save your image as an nt:file/nt:resource node with the correct jcr:mimeType value. Then you could use the simple WebDAV servlet (see org.apache.jackrabbit.j2ee.SimpleWebdavServlet in jackrabbit-webapp) to serve the image. BR, Jukka Zitting
