In Mendix 11 PWA Offline mode, the image is correctly stored in IndexedDB and hasContents = true confirms this — but the standard Image widget cannot always render it in fully offline mode. That’s a current platform limitation, not a problem with your logic.
/file?guid=…).hasContents = true, nothing shows. The recommended and 100% working approach right now (used by others successfully) is:
<img src="data:image/jpeg;base64, INSERT_BASE64_HERE" />
This bypasses the built-in file resolver and works offline because the browser renders the Base64 directly.
This behavior is currently a limitation of offline PWAs in Mendix 11, not a bug in your implementation. The base64/HTML method is the recommended workaround until Mendix updates the Image widget to support offline IndexedDB files directly.
Hello,
This is a known limitation of fully offline PWAs in Mendix 11.7.
The image is correctly stored in IndexedDB, and hasContents = true confirms the file exists. However, the Image widget cannot always resolve and display FileDocument images directly from IndexedDB in fully offline mode.
Your base64 workaround works because it bypasses Mendix’s file resolution and allows the browser to render the image directly.
So this is not an implementation issue, but a current platform limitation. Using base64 or an HTML element is the recommended workaround for offline image display.
Thanks