title: Writing file or copying file to a location in .net Core over http
body: <p>In a ASP.Net Core 2.1 App I am writing byte array as a pdf file to a location with below code </p>
  
  <pre><code>byte[] arr = await rpt.BuildFile(actionContextAccessor.ActionContext);
  System.IO.File.WriteAllBytes(Path.Combine(env.WebRootPath, "Storage", "PDF", HttpContext.Session.GetString("UserID"), Name), arr);
  </code></pre>
  
  <p>Now I also want to store same byte array as pdf over a http location </p>
  
  <pre><code>  string _path = "http://MyApps.in/document_1/" + Model.Identifier.Substring(0, 4) + "/" + Name;
    System.IO.File.WriteAllBytes(_path, arr);
  </code></pre>
  
  <p>But it does not seems to work this way look like <code>File.WriteAllBytes</code> does not write over HTTP location.</p>
  
  <p>How can I write pdf file over HTTP location ??</p>