image.fromstream()参数无效
SqlConnection con = new SqlConnection("server=.;database=xiaoluo1;integrated security=true");
sqlDataAdapter da = new sqlDataAdapter("select * from photo", con);
DataSet ds=new DataSet();
da.Fill(ds);
MemoryStream ms = new MemoryStream((byte[])ds.Tables[0].Rows[0]["照片"]);
Image image = Image.FromStream(ms);
pictureBox1.Image = image;
------解决方案--------------------Image image = Image.FromStream((stream)ms);这是今天刚学到的