如何从本地Sharepoint 2013检索图像 [英] How can I retrieve an Image from on-premise Sharepoint 2013

查看:80
本文介绍了如何从本地Sharepoint 2013检索图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在使用React-Native来构建移动应用程序.当我尝试从Sharepoint渲染图像时,例如http://my_url/en/sub_site/PublishingImages/picture1.jpg,但我收到错误消息. (401)

I'm using React-Native for building a mobile app. When i try to render an image from sharepoint like http://my_url/en/sub_site/PublishingImages/picture1.jpg but im getting an error. (401)

我也尝试通过Fetch API请求该网址,并附加了X-RequestDigest标头,但它也无法正常工作.

Also i tried to request that url via Fetch API and attached X-RequestDigest header but it did not work too.

我将如何从服务器检索该图像并将其呈现在我的移动应用程序中?

How I'm going to retrieve that image from the server and render it in my mobile app?

谢谢大家.

推荐答案

为了能够在移动应用程序中使用Sharepoint网站中的图像,您的Sharepoint网站应允许匿名访问.您可以使用绝对图片网址从常规移动浏览器访问该图片吗?

in order to be able to use image from Sharepoint site in mobile app your Sharepoint site should allow anonymous access. Are you able to access this image from regular mobile browser using absolute image url?


这篇关于如何从本地Sharepoint 2013检索图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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