title: size limit for the sql_variant exceeds
body: <p>I am trying to save image from fileupload control into the database    </p>
  
  <pre><code>public Byte[] bytes;
  Stream fs = FileUpload1.PostedFile.InputStream;
  BinaryReader br = new BinaryReader(fs);
  bytes = br.ReadBytes((Int32)fs.Length);
  SqlDataSource2.Update();
  
  protected void SqlDataSource2_Updating(object sender, SqlDataSourceCommandEventArgs e)
  {
     e.Command.Parameters["@project_file"].Value = bytes;
  }
  </code></pre>
  
  <p>My database <code>project_file</code> field is set to <code>varbinary(MAX)</code>, </p>
  
  <p>but it is throwing an error</p>
  
  <blockquote>
    <p><strong>Parameter '@project_file' exceeds the size limit for the sql_variant datatype.</strong></p>
  </blockquote>
  
  <p>Please suggest some solution</p>