Not able to read image file from webapp in vaadin 13 with spring boot appli

I am reading the image file from webapp/images folder by using below code.

new FileInputStream(new File(VaadinServletService.getCurrent().getStaticResource(imageDisplay.getSrc()).getFile()))

Above line return the correct path which is /D:/weaveWorkspace/weaveweb/target/weave/images/logo-1.png in my local environment but when i deploy my application to azure cloud server. Above line returns below result which is incorrect.
/home/site/wwwroot/webapps/weave.war*/images/logo-1.png

My question is, what is the proper/best/recommended way to read image files from webapp folder in vaadin 13 in spring boot application?

When i use relative src path in image component like images/avatar.png. This is successfully loaded in image component.

Is there a way to read the stream from Image component?