check if image exists on intranet
问题 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