Reputation: 2499
I want to retrieve binary stream object from Collections, to be stored in a Database table as varbinary. How is it possible to store to database using ASP.Net with C# ? I am using SQL Server 2008. What will be the process to store to database including connection process ?
Upvotes: 1
Views: 1187
Reputation: 20475
Why would you want to do that ? that is not what a database is suited for. Perhaps you should move the files to the filesystem of the database server and store meta-data about the files in the actual database.
Upvotes: 2
Reputation: 22368
The easiest solution for this would be to serialize the objects. http://msdn.microsoft.com/en-us/library/7ay27kt9%28VS.71%29.aspx
Upvotes: 0