如何使用Rest Api从文档库下载文件 [英] How to download file from document Library using Rest Api

查看:83
本文介绍了如何使用Rest Api从文档库下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我们在文档库中有一个文件,我们想通过rest api下载该文件。任何人都有任何想法,请与我们分享。


提前致谢....




解决方案


如果您正在使用SharePoint加载项/应用程序,则可以通过REST API获取文件二进制数据。


_ api / Web / GetFileByServerRelativeUrl(' /Doc1/Lee1.docx')/


value


这是一个类似的线程供您参考。


< p style ="margin:0px"> https:/ /social.msdn.microsoft.com/Forums/office/en-US/2eee2726-005b-4bfd-ab2f-12494b5f8ab6/download-file-from-document-library-using-rest-api?forum=sharepointdevelopment


最好的问候,



Hi All,

We have a file inside document Library, we want to download that file  through rest api. Any one have any idea ,please share with us.

Thanks in advance....

解决方案

Hi,

If you’re using SharePoint add-in/app, you could get file binary data by REST api.

_api/Web/GetFileByServerRelativeUrl('/Doc1/Lee1.docx')/


value

Here is one similar threads for your reference.

https://social.msdn.microsoft.com/Forums/office/en-US/2eee2726-005b-4bfd-ab2f-12494b5f8ab6/download-file-from-document-library-using-rest-api?forum=sharepointdevelopment

Best Regards,

Lee


这篇关于如何使用Rest Api从文档库下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆