Hi,
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 ?
–
Regards,
Niyas
Hi,
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 ?
–
Regards,
Niyas
The demo app is good to get an idea how to do things:
http://demo.vaadin.com/sampler#ImmediateUpload
André
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 ]
–
Regards,
Niyas
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.
http://demo.vaadin.com/sampler#LinkCurrentWindow
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:
http://vaadin.com/forum/-/message_boards/message/85012
André