简体   繁体   English

在自适应卡中使用ms-appdata:/// Local /

[英]Using ms-appdata:///Local/ In Adaptive Cards

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. 我一直在Windows 10时间轴中使用自适应卡,到目前为止,我一直可以通过正常工作的URL获取backgroundImage 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. 我想知道是否可以切换到使用存储在UWP应用程序的LocalStorage文件夹中的本地图像,但是当我将backgroundImage更改为ms-appdata:///Local/Card.jpeg该图像不显示并且该文件在目录中为100%,因为在应用程序本身中可以很好地使用它。

Anyone have any ideas and managed to get this working using ms-appdata ? 任何人都有任何想法,并设法使用ms-appdata使其正常工作吗?

All Timeline UserActivities must be HTTP images today. 今天,所有时间轴UserActivities必须是HTTP图像。 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. UserActivities的主要功能是在设备之间漫游,并且不能保证给定的应用程序(及其关联的本地映像)将在设备上可用。 As an example, Microsoft Launcher recently added support for Timeline . 例如,Microsoft Launcher最近添加了对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. 自适应卡团队正在寻求通过添加对“ data-URIs ”的支持来改善这种情况的方法,“ data-URIs ”是直接在有效负载中以base64编码的图像。 This feature is being implemented now but won't roll out to Timeline until a future release of Windows. 该功能现在正在实施,但要在将来的Windows版本中才会推出到时间轴中。 Please let us know if this addresses your needs or post any other suggestions on the team's GitHub. 请让我们知道这是否满足您的需求,或在团队的GitHub上发布任何其他建议。

I've tried it as well. 我也尝试过。 Adaptive cards don't work with ms-appdata:/// 自适应卡不适用于ms-appdata:///

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM