this trick with the alias... I has done it mounting a dynamic WebResource
and streaming back the contents myself. Like in here

http://code.google.com/p/antilia/source/browse/trunk/com.antilia.demo.manager/src/com/antilia/demo/manager/img/MyImageMountedFactory.java

Best,

Ernesto






On Wed, Jan 27, 2010 at 3:45 PM, Don Ferguson <don.fergu...@gmail.com>wrote:

> 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 <fm...@meillet.com>
>>
>>  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: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to