check if image exists on intranet

℡╲_俬逩灬. 提交于 2019-12-11 05:21:35

问题


Im using the answer in this question Test to see if an image exists in C# to find out if images exists.

However I am getting an exception with error: The remote server returned an error: (401) Unauthorized.

The images are on our sharepoint intranet, so how can i test to see if the images do exists?

Thanks


回答1:


request.Credentials = new NetworkCredential(username, password);



来源:https://stackoverflow.com/questions/7978318/check-if-image-exists-on-intranet

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!