I used this suggestion to serve images out of a database, and it worked very well:

http://dotev.blogspot.com/2009/11/serving-images-and-other-resources-with.html


On Jan 27, 2010, at 5:56 AM, Ernesto Reinaldo Barreiro wrote:

Just a couple of ideas...

-Use a servlet to serve them? You don´t need Wicket for this... and combine
this with simpleimage?
-With Wicket mount a dynamic web-resource and combine this with simpleimage?


Ernesto

2010/1/27 François Meillet <[email protected]>

Hi Wicketers,

I have a directory, /xxx/images with uploaded images, which is not under
the application context root directory.
How can I serve them as static images ?

I tried the StaticImage class I found in the forum (
http://old.nabble.com/Plain-IMG-src-urls-td21547371.html#a21547543 )
but it doesn't work for me. It just work if the image files are under the
context root directory.

Thanks for your help.

François




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to