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: