Hi, guys!
I have two questions about showing images in canvas app.
Image is placed in SharePoint. My app takes it from PowerAutomate.
In the app onClick
UpdateContext({CurrentImage: GetImagefromSharePoint.Run(ThisItem.file&"."&ThisItem.Ext).img64});
Image property
"data:"&ThisItem.mimeType&";base64,"&CurrentImage
1. If filesize is 15kb - it takes 3 sec to show the image in the app. PowerAutomate takes 1-2 sec to get the image and transfer it to app.
if filesize is 4MB - it takes 15 sec to show it. PowerAutomate takes 3-5 sec to get the image and transfer it to app.
If I click on the file directly in SharePoint - it takes 2 sec to show 4MB image. Is there a way to make the showing faster? 15 sec is too much.
2. As typed above I use "data:"&ThisItem.mimeType&";base64,"&CurrentImage, is it a correct way to show image? Is it possible to skip using mimeType?