Download a file to local file system..

Do we have a ‘download’ feature in vaadin. I have to display list of files in different formats(pdf,xls,csv etc…) and when user selects a file, a popup should appear asking the user to choose the the location to download the file.
I can create a sub window and prompt user to select path, but how do we save the file to user’s local file system. I can see upload feature in vaadin,but not much about download.

Any clue regarding this would be helpful.
Thank you very much

Hi,

Actually, downloading files is discussed quite a lot
here on the forums!
Look into Resource, FIleResource and StreamResource.

Try
this thread
as a starting point.

Cheers,

Charles.

Thank you, DownloadStream API worked.