c# - Microsoft word document to OLE field -
I am trying to upload the docx document to access the database. OleDbConnection conn = null; OleDbDataReader Reader = Faucet; Try {Conn = new OleDbConnection ("Provider = Microsoft.ACE.OLEDB.12.0;" + "Data Source =" + "" @: "C: \ Audios \ Auditor_Artificci 20077.ACADB"); Conn.Open (); Olebey Commands CMD = New Oleadby Commands (); Cmd.CommandText = "Questions (Category, Question, Answer, Correct Answer, Comment, Reference, Question No, Change, Issue) Prices (@ P2, @ P3, @ P4, @ P5, @ P6, @ P7, P in P8, @ P9, @ P10) "; Byte [] file = file. Read AllBytes (@ "C: \ AudSystem \ rez.docx"); Cmd.Parameters.AddWithValue ("@ P2", 2); Cmd.Parameters.AddWithValue ("@ P3", file); Cmd.Parameters.AddWithValue ("@ P4", file); Cmd.Parameters.AddWithValue ("@ P5", "AD"); Cmd.Parameters.AddWithValue ("@ P6", "FH"); Cmd.Parameters.AddWithValue ("@ p7", "z