Saving the Image from WPF control to SQL Server DB
问题 I have an application written in WPF 3.5 which at some point it saves the data in including an image in SQL Server, this is part of the code in saving the data (note this.pictureImage is a WPF Image control):- using (SqlCommand command = myConnection.CreateCommand()) { String sqlInsertCommand = "INSERT INTO Info_Id (idNumber, FirstName, Nationality, Image) VALUES (@idNumber, @firstName, @nationality, @image)"; command.CommandText = sqlInsertCommand; command.CommandType = System.Data