I need to save a file in database as binary and a method that retrieves the binary file that is stored as blob in the database .. can anyone write the code and tell me the way that I can save the file in the database as blob ?
1 Answer
Not knowing which RDBMS you're using and if you're coding in C# or VB.Net I can only point you in a general direction. Here are a couple of links:
- Working with binary large objects (BLOBs) (C# using ADO.NET)
- Writing BLOB Values to a Database (VB.Net using ADO.NET)
- Save files in database with entity framework (C# with Entity Framework)