Is there any way I can convert data to varbinary with some specific format while I try to save data in SQL Server table. Like if the data is coming from RTF editor. We use OpenXmlBytes for storing data into database from frontend and pass as bytes to stored procedure. Can the same be achieved to update data in the table in varbinary format with OpenXmlBytes ?
I am using Devexpress RichEditControl to save the data. As mentioned, I convert the data into using OpenXmlBytes.
As follows,
DevExpress.XtraRichEdit.RichEditControl rtf = new DevExpress.XtraRichEdit.RichEditControl();
byte[] strRemark = rtf .Document.OpenXmlBytes;
Can I achieve the same in SQL server?