How to create Image?

Hello, please explain how to create image(not icon)
Image img = new Image(???)

“resources/images/test.png”

Hi,
You need to put your image file under resource directory e.g.

src/main/webapp/frontend/img/

and then you can refer to

Image test= new Image(“frontend/img/test.svg”, “alt”);

Here is an article about static resources https://vaadin.com/blog/vaadin-10-and-static-resources

Thanks)