on 07-20-2023 1:33 PM
Certain sources (or URLs) do not seem to display the images on mobile (they do on desktop). Logging on mobile does not provide extra info, except that this error does happen.
onImageError: function (oEvent) { console.log("onImageError"); console.log(`source: ${oEvent.getSource()}`); console.log(`params: ${JSON.stringify(oEvent.getParameters())}`);},
The console logs contain
onImageError
source: Element sap.m.Image#container-de.org.zzimage---Main--_IDGenImage2
params: {"id":"container-de.org.zzimage---Main
Jpeg urls, which end on .jpeg or .jpg do show.
Other images coming from ixos document archive, have no file extension. They show on desktop, but not on mobile. (I've replaced some values in the link below for this blogpost). Opening these links directly in the browser also shows the image.
https://yyyyy.yyyy.yy/archive?get&pVersion=0045&contRep=P3&docId=...9847FF6CAA0C74∁Id=data∾cessMode=...
The UI5-setup for the testing application is simple. The view:
<Page id="page" title="{i18n>title}"> <content> <VBox id="df"> <Image id="_IDGenImage1" src="{local>/img1}" /> <Image id="_IDGenImage2" src="{local>/img2}" error="onImageError" load="onLoad" width="400px" height="500px" /> <Image id="_IDGenImage3" src="{local>/img3}" /> </VBox> </content></Page>
The 3 urls are available in the local jsonmodel. The 2nd image is the one that does not show om mobile.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.