cmd.CommandText = "SELECT image FROM table1 where id='U07WL'"; cmd.CommandType = CommandType.Text; SqlDataReader reader = cmd.ExecuteReader(); reader.Read(); byte[] barrImg = (byte[])reader["image"]; string strfn = Convert.ToString(DateTime.Now.ToFileTime()); FileStream fs = new FileStream(strfn, FileMode.CreateNew, FileAccess.Write); fs.Write(barrImg, 0, barrImg.Length); fs.Flush(); fs.Close(); panel1.BackgroundImage = Image.FromFile(strfn);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)