This tutorial will guide you to save or retrieve image from SQL Server in C#.
1. First of all we need a database in SQL Server which contains a table with only two columns one is 'id' of type 'int' and second is of 'image' of type 'image'.
2. Open SQL Server 2005 Express Management Studio and create new database. Name it according to your choice.
3. After successfully creating database create a table with two columns described in step 1.
4. Now Open Visual Studio 2008/2010.
5. Create a project of windows form.
6. In Design View of Form1(you can rename it to your choice) drag a control of picture box to the form with two buttons.
7. Change text of one button to Save and second to Retrieve.
8. Double click Save button to create event for double click.
9. In this event function, create...