I have an absolute local path pointing to a dir: \"file:\\\\C:\\\\Users\\\\john\\\\documents\\\\visual studio 2010\\\\Projects\\\\proj\"
\"file:\\\\C:\\\\Users\\\\john\\\\documents\\\\visual studio 2010\\\\Projects\\\\proj\"
But when I try
string ImagePath = ""; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(ImagePath); string a = ""; try { HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream receiveStream = response.GetResponseStream(); if (receiveStream.CanRead) { a = "OK"; } } catch { }