I am working on Image Extraction Software from A WebPage . have created a function
public static void GetAllImages()
{
WebClient x = new WebClient();
string source = x.DownloadString(@"http://www.bbc.com");
var document = new HtmlWeb().Load(source);
var urls = document.DocumentNode.Descendants("img")
.Select(e => e.GetAttributeValue("src", null))
.Where(s => !String.IsNullOrEmpty(s));
document.Load(source);
}
It says "Uri is too long " ..
I tried to use Uri.EscapeDataString .. But not getting idea where to put it
Any Help would be appreciated