Create table PhotoTest
(
ID int identity(1,1) primary key,
Photo image
)
<connectionStrings>
<add name="ConnSqlStr" connectionString="Data Source = (local); User ID = sa; password=***; DataBase = Test " providerName="System.Data.SqlClient"/>
</connectionStrings>
<add name="ConnSqlStr" connectionString="Data Source = (local); User ID = sa; password=***; DataBase = Test " providerName="System.Data.SqlClient"/>
</connectionStrings>
img.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
con.Close();
}