Skip to content
Advertisement

How to save image in database using C# [closed]

I want to save user image into a database in C#. How do I do that?

Advertisement

Answer

You’ll need to serialize the image to a binary format that can be stored in a SQL BLOB column. Assuming you’re using SQL Server, here is a good article on the subject:

http://www.eggheadcafe.com/articles/20020929.asp

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement