Guest User

Untitled

a guest
Jun 13th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. using (OleDbCommand Update = new OleDbCommand(
  2. "UPDATE [BoardDetail] SET BoardImage= '(?)' WHERE BoardID='" + oItem.BoardID + "' AND BoardSerialNo='" + oItem.BoardSerialNo + "' ", connection))
  3. {
  4. OleDbParameter imageParameter =
  5. Update.Parameters.Add("@image", OleDbType.Binary);
  6. imageParameter.Value = content;
  7. imageParameter.Size = content.Length;
  8. Update.ExecuteNonQuery();
  9. }
  10.  
  11. SET BoardImage= '(?)'
  12.  
  13. SET BoardImage= @image
Add Comment
Please, Sign In to add comment