Feel free to move this if it does not belong. I am trying to update an image field in a SQL 2005 database. My code does not throw and exception but whe I check the database I don't see the image.
We have a directory full of jpg files named a users identifier (person123.jpg)
I loop through the directory and update the database using the file name and the image using the following code. Any ideas? Thanks!
public
{
personid = pictureFile.Name.ToString();
personid = stuNum.Replace(
updatePicture.Parameters.Add(
conn.Open();
updatePicture.ExecuteNonQuery();
conn.Close();
}
private
br.Close();
fs.Close();