title: how to download image using html agility pack
body: <p>i have seen further question answers but cannot get a clear answer.</p>
  
  <pre><code>foreach (HtmlNode cat2 in doci.DocumentNode.SelectNodes(".//a/@href | //img/@src"))
  </code></pre>
  
  <p>in this i am getting src in img tag i want to download that image and store it into database.what should i do? is it possible with html agility pack to download image if so, then tell me how to get and assign it to a variable then i can store in my DB</p>
  
  <pre><code>var imagePath = cat2.Attributes["src"].Value;
  </code></pre>
  
  <p>this is not working too</p>