int length = fileuploadImage.PostedFile.ContentLength;
byte[] imgbyte = new byte[length];
HttpPostedFile img = fileuploadImage.PostedFile;
img.InputStream.Read(imgbyte, 0, length);
cmd.Parameters.Add("@Photo", SqlDbType.Image).Value = imgbyte;
int count = cmd.ExecuteNonQuery();