title: Upload Image to Database From DetailsView Insert Mode
body: <p>I am attempting to upload an image to a database via a DetailsView containing an UploadFile control in the Edit Item template.</p>
  
  <p>I have a stored procedure which handles the upload to a SQLServer DB which expects two parameters: AuthorName, varchar(20) and AuthorImage, varbin(20).</p>
  
  <p>The DetailsView is associated with a SQLDataSource: Authors. The Authors data source has the stored procedure as the Insert Command.</p>
  
  <p>I can grab the binary data from the UploadFile control during the ItemInserting event but I am at a loss as to how to attach the byte array to the AuthorImage parameter.</p>
  
  <p>Any and all assistance appreciated and if possible answers in C# please.</p>