title: how to get image from url c#.Net Core
body: <p>I'm using HttpWebRequest to get stream from url.In .Net Framework,I get image stream like this:</p>
  
  <pre><code>HttpWebRequest rq=(HttpWebRequest)WebRequest.Create(new Uri(url));
  Stream stream=rq.GetRequestStream();
  </code></pre>
  
  <p>This works perfect.When I do this in .Net Core,it does't works.the code like this:</p>
  
  <pre><code>HttpWebRequest rq=WebRequest.CreateHttp(new Uri(url));
  Stream stream=rq.GetRequestStreamAsync().Result;
  </code></pre>
  
  <p>How can I achieve this in ASP.NET core?</p>