jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Image display
Date Thu, 01 Nov 2007 07:01:34 GMT
Hi,

On 11/1/07, Ryan Bales <ultravi01@gmail.com> 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

Mime
View raw message