Try
byte[] ReadFile(string sPath)
{
byte[] data = null;
FileInfo fInfo = new FileInfo(sPath);
long numBytes = fInfo.Length;
FileStream fStream = new FileStream(sPath, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fStream);
data = br.ReadBytes((int)numBytes);
return data;
}
at click event of buttonupload try
byte[] imageData = ReadFile(openFileDialog1.FileName);
and pass these imagedata value to sqlcommand parameter as
comm.Parameters.AddWithValue("images",(object)imageData);