13
ไบต์อาร์เรย์เพื่อการแปลงรูปภาพ
ฉันต้องการแปลงอาร์เรย์ไบต์เป็นรูปภาพ นี่คือรหัสฐานข้อมูลของฉันที่ฉันได้รับอาร์เรย์ไบต์: public void Get_Finger_print() { try { using (SqlConnection thisConnection = new SqlConnection(@"Data Source=" + System.Environment.MachineName + "\\SQLEXPRESS;Initial Catalog=Image_Scanning;Integrated Security=SSPI ")) { thisConnection.Open(); string query = "select pic from Image_tbl";// where Name='" + name + "'"; SqlCommand cmd = new SqlCommand(query, thisConnection); byte[] image =(byte[]) cmd.ExecuteScalar(); Image newImage = …
104
c#
arrays
byte
bytebuffer