I have been using adaptive cards in the Windows 10 timeline and up to now have been getting the backgroundImage
from a URL which works fine. I would like to know if it is possible to switch to using a local image stored in the LocalStorage
folder of my UWP app but when I change the backgroundImage
to ms-appdata:///Local/Card.jpeg
the image does not display and the file is 100% in the directory as it is used fine in the application itself.
Anyone have any ideas and managed to get this working using ms-appdata
?
All Timeline UserActivities
must be HTTP images today. A primary function of UserActivities
is to roam across devices, and there is no guarantee that a given app (and its associated local images) would be available on a device. As an example, Microsoft Launcher recently added support for Timeline.
The Adaptive Cards team is looking to improve this situation by adding support for "data-URIs", which are base64 encoded images directly in the payload. This feature is being implemented now but won't roll out to Timeline until a future release of Windows. Please let us know if this addresses your needs or post any other suggestions on the team's GitHub.