title: HTTP error 401 when Retrieving an image
body: <p>Im trying to retrieve an image in the Layouts mapped folder. I have the following code to do that</p>
  
  <pre><code>var imageUrl = SPContext.Current.Web.Url + "/_layouts/CGCDocumentHistoryView/Images/eskom.png";
  byte[] imageData;
  
  using (var webclient = new WebClient())
  {
     imageData = webclient.DownloadData(imageUrl);
  }
  </code></pre>
  
  <p>When i execute this i get a 401 error. How can i fix this</p>