title: Store/retrieve files to/from SQL Server database
body: <p>I want to allow users to attach files to a project. Files can be images, documents, texts, zip files etc. </p>
  
  <p>I have created a table in my database which will store file name, extension, size, comments about files and the file data. Column type for file data is <code>VarBinary</code> (blob). </p>
  
  <p>Now, I have taken the input from user and stored that in my local listview (not bound to db). I want to iterate on the list view rows and store them to database. How should I store the file data to BLOB column?</p>