Storing Files/Documents in Database
1. Convert files (such as image, document, stream files) as Byte Array and insert into database in format of BLOB data .
Thus, convert word document into Byte Array before inserting into database, and convert back to file after retrieving from database.
ASP.NET code to uploading document to database: