When you create a main window, by default it creates one with a titleBar and the first item in the titleBar is an Embedded.
The documentation “188.8.131.52.8. Embedded” shows how to inject the embedded and the filestorageservice into the controller and load the image file as a byte array.
It relies on:
FileDescriptor imageFile = (FileDescriptor) params.get("imageFile");
The documentation then says: In Web Client, the component enables displaying of files located inside VAADIN folder. For example:
Where is the “Web Client” for the main window for setting the embedded source?
It also says: You can also define a resource files directory in the cuba.web.resourcesRoot application property and specify the name of a file inside this directory:
How is this resource directory specified if the files are located in a folder in themes? Or are we supposed to move the files to that directory? Where is it by default?