Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Image not persist
I have a Image for user to show user profile picture. User can upload the image, which will store in the vaadin theme folder so to set with ThemeResource(). The first time when user upload the image, it works. But after user change to another picture, at the moment the image is changed but after user sign out and sign in again, the picture change to the previous picture. Check with firebug the image source is from ../APP/connector/0/.. . The original file is store in
webapp\VAADIN\themes\mytheme\img\profile\41
Please do not upload any pictures to theme resource. That is completely wrong approach, at least, if your application is deployed as .war file, the theme storage is read-only. Please save your uploaded image to somewhere else(separate file storage, or, preferably, database), and make a special servlet for downloading images.