upload file and viewing it

Hi everyone ,please assist i have the following code,i want to add action listiner that will help me to view file on web browser and to save it in the database. thanks

VerticalLayout uploadFile = new VerticalLayout ();
uploadFile.setMargin(true);

final Upload uploadField = new Upload();

uploadField.setWidth(“45px”);
uploadField.setImmediate(false);
ploadField.setSizeFull();
uploadField.setVisible(true);
uploadFile.addComponent(uploadField);

Hi Rotondwa,

There is an example with source code in the Book of Vaadin:
https://vaadin.com/book/-/page/components.upload.html

Hi

 I am here with request to guide me in preview features to view the uploaded file. it's a long gap i am seeing no one ever answer for this question! Pls share your help if possible! thanks in advance