Request us for the complete code. If number of request reached 15, then the complete source code with demo will be published here.
For now, https://vaadintutorial.blogspot.com/2014/03/how-to-download-file-from-server-in.html
check out this vaadin tool on youtube https://www.youtube.com/watch?v=wmIQ50V1W0w