Unable to cast object of type 'System.Int32'to type System.Byte[]
byte[] img = (byte[])cmd.ExecuteScalar(); string str = Convert.ToString(DateTime.Now.ToFileTime()); FileStream fs = new FileStream(str, FileMode.CreateNew, FileAccess.Write); fs.Write(img, 0, img.Length); fs.Flush(); fs.Close(); PicOldPatient.Image = Image.FromFile(str);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)