|
发表于 2016-7-19 14:03:22
|
显示全部楼层
//选择照片开始
Image myphoto = pictureBox1.Image;
MemoryStream mystrphoto = new MemoryStream();
myphoto.Save(mystrphoto, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] myby = mystrphoto.GetBuffer();
//选择照片结束
string updateString = "update T_USER set photo=@fs" + " where id='" + mycurrentno + "'";
if (DbHelperOra.ExecuteSqlInsertImg(updateString, myby) > 0)
{
MessageBox.Show("保存成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("未保存成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
提示:ora-01036错误,麻烦看一下呢
|
|