I have a fileresource
FileResource curResource = new FileResource(new File(basepath + "/WEB-INF/docs/"+path+".pdf"));
and I want to save this file from a browser on a computer by clicking a button. How can I do this in Vaadin 7? Thanks
I am trying something like this:
ExternalResource resource = new ExternalResource(basepath + "/WEB-INF/icons/"+"block_16.png"); Page.getCurrent().open(resource.getURL(),"Download",true);
but I'm empty: about a blank page and nothing happens ...
source share