image url


I want to upload an image to the same server where vaadin application is running

and put the image url as the source of a link . how to implement this ?


The demo app is good to get an idea how to do things:


Dear Andre,

Thanks for the prompt response.

i have done the uploading part already .

I need the logic to display the uploaded image url as a resource of a link. [ like href in a web application ]


This now depends if the image is available via a normal url (Like http://myserver/myimage.jpg) or not.
When it’s available as a normal url, then just add a link component to your application.

If you wish to stream/download the image directly from vaadin,
(because the file is stored in a DB, or in a non-public part of the server)
then use something like described here: