title: How to read an image file to a byte[]?
body: <p>This is how I save images.</p>
  
  <pre class="lang-cs prettyprint-override"><code>[HttpPost]
  public ActionResult Create(HttpPostedFileBase file)
  {
      if (file != null)
      {
          var extension = Path.GetExtension(file.FileName);
          var fileName = Guid.NewGuid().ToString() + extension;
          var path = Path.Combine(Server.MapPath("~/Content/Photos"), fileName);
          file.SaveAs(path);
  
          //...
      }
  }
  </code></pre>
  
  <p>I don't want to display the image from that location. I want rather to read it first for further processing. </p>
  
  <p>How do I read the image file in that case?</p>