【发布时间】:2021-03-13 22:31:23
【问题描述】:
我有一个 Power App,可用于上传短信和图片。在接下来的 12 到 24 个月内最终将上传数千张此类图像,因此我需要一种将图像存储在 SP 列表中的可靠方法,以及一种在 Power App 中显示图像的可靠方法。我用于存储图像的 SharePoint 列表列类型是文本多行。我通过 Patch() 保存图像。我正在使用一个添加媒体按钮,它会生成一个名为“UploadedImage1”的图像附件。 我尝试了两种将图像存储在列类型为多行文本的 SP 列表中的方法。
// Has intermittent issues displaying images stored in the SP List
Patch( ShoutoutsData, Defaults( ShoutoutsData ), {
Title: Value(Text(Now(), "[$-en-US]yyyymmddhhmmss")),
Image: UploadedImage1.Image
} )
// Works but Image column is sometimes storing large image files and it does not require very many image uploads before the SP list starts having issues displaying in a browser (you get the "The browser is not responding do you wanna wait" message
Patch( ShoutoutsData, Defaults( ShoutoutsData ), {
Title: Value(Text(Now(), "[$-en-US]yyyymmddhhmmss")),
Image: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""",""),
} )
正如每个 Patch() 公式上方的 cmets 所述,每种方法都存在问题,因此我需要一种替代方法。有什么建议吗?
【问题讨论】:
标签: sharepoint-online powerapps