Image from resources

Hi,

I have image stored in db, and I can show it as “Embedded”

But how can I have access to it from ‘regular’ html?

I mean, how to create a html content (in CONTENT_XHTML mode) with element to show that file?

Firebug shows the link of Embedded object as, for example: http://localhost:8888/APP/1/logo4.jpg
but what are the rules of creation of image’s link (logo4.jpg is a name of course, but ‘APP/1’?).

My idea is preparing simple cms that can show html with images stored as a blobs in database.

I know, i can create an external servlet, but maybe it is possible inside vaadin…

Regards

Tomasz

Yeah, application resources are served that way.

You might want to consider serving the images with a
URI or parameter handler
. That way you would have better control over the URL naming by which you get the images.

Thank you,
This is exactly what i needed.

Best regards,
Tomasz