سلام
اگه کسی می دونه که چطور میشه عکس رو به بانک sql2005 اضافه کنه لطفا راهنمایی کنید
ترجیحا بهتره با لینک باشه نه با کانکشن.
من یک کد پیدا کردم و میذارم نظرتون رو بدین و اشکالاتش رو بگیرین
ممنون

protectedvoid btnUpload_Click(object sender, EventArgs e)
{
//Create a new filestream object based on the file chosen in the FileUpload control
FileStream fs = newFileStream(ImageUploadToSQL.PostedFile.FileName, FileMode.Open, FileAccess.Read);
//Create a binary reader object to read the binary contents of the file to upload
BinaryReader br = newBinaryReader(fs);
//dump the bytes read into a new byte variable named image
byte[] image = br.ReadBytes((int)fs.Length);
//close the binary reader
br.Close();
//close the filestream
fs.Close();
//Now that we've read the chosen file into a byte variable we can work with,
//stick the contents of that variable into the SQL Server database
//Create a SQL Server connection variable
SqlConnection myConnection = newSqlConnection(ConfigurationManager.ConnectionStrings["BlobsConnectionString"].ConnectionString);
//Create a SQL Server command variable
SqlCommand addimage = newSqlCommand("INSERT INTO Images (" + " Image, ImageName)" + " VALUES(@Image, @ImageName)", myConnection);
//Assign our image variable and filename variable to the parameters of the SQL Command
addimage.Parameters.Add("@Image", SqlDbType.Image, image.Length).Value = image;
addimage.Parameters.Add("@ImageName", SqlDbType.NVarChar).Value = txtFileName.Text;
//open the SQL connection and run the command to insert image and image name to the database
myConnection.Open();
addimage.ExecuteNonQuery();
myConnection.Close();
}