title: Convert HttpPostedFileBase to byte[]
body: <p>In my MVC application, I am using following code to upload a file.</p>
  
  <p><strong>MODEL</strong></p>
  
  <pre><code> public HttpPostedFileBase File { get; set; }
  </code></pre>
  
  <p><strong>VIEW</strong></p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.File, new { type = "file" })
  </code></pre>
  
  <p>Everything working fine .. But I am trying to convert the result fiel to byte[] .How can i  do this</p>
  
  <p><strong>CONTROLLER</strong></p>
  
  <pre><code> public ActionResult ManagePhotos(ManagePhotos model)
      {
          if (ModelState.IsValid)
          {
              byte[] image = model.File; //Its not working .How can convert this to byte array
          }
       }
  </code></pre>