Alex Rivera | Logout

How to save image in database using C#

Asked 2010-08-23T14:17:17.533
33

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

Edit
Report

1 Answer

7

You'll want to convert the image to a byte[] in C#, and then you'll have the database column as varbinary(MAX)

After that, it's just like saving any other data type.

answered 2010-08-23T14:22:29.957

Your Answer