Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从SharePoint库创建缩略图_Sharepoint_Sharepoint Online - Fatal编程技术网

从SharePoint库创建缩略图

从SharePoint库创建缩略图,sharepoint,sharepoint-online,Sharepoint,Sharepoint Online,我们正在开发一项功能,用于在前端Web应用程序中显示存储在SharePoint中的图像的缩略图 我们正在使用getpreview.ashx生成如下所示的缩略图,效果良好 https://<SPTenant>.sharepoint.com/_layouts/15/getpreview.ashx?path={EncodedFilePath} https://.sharepoint.com/_layouts/15/getpreview.ashx?path={EncodedFilePath

我们正在开发一项功能,用于在前端Web应用程序中显示存储在SharePoint中的图像的缩略图

我们正在使用getpreview.ashx生成如下所示的缩略图,效果良好

https://<SPTenant>.sharepoint.com/_layouts/15/getpreview.ashx?path={EncodedFilePath}
https://.sharepoint.com/_layouts/15/getpreview.ashx?path={EncodedFilePath}
然而,如果我们尝试为一个比URL大292MB的更大文件创建缩略图,就会失败

我们尝试了另一种方法,如下所示:

https://<SPTenant>.sharepoint.com/_api/v2.0/sharePoint:{SiteCollectionRelaviteFilePath}:/driveItem/thumbnails/0/large/content?preferNoRedirect=true
https://.sharepoint.com/_api/v2.0/sharePoint:{SiteCollectionRelaviteFilePath}:/driveItem/thumbnails/0/large/content?preferNoRedirect=true
返回时出错:

{“错误”:{“代码”:“generalException”,“消息”:“替换” 在插槽中找到流(原始时间:2021-04-01 15:01:00Z)。此文件 太大,无法处理。文件大小上限:250 MB。实际文件大小:292 MB,“内部错误”:{ “代码”:“SubStreamCached_FileTooBig”}}

有没有办法克服250MB的限制,为较大的文件创建缩略图

谢谢大家!