Open XML: Convert open XML string to byte[]

Rahul Roshan 1 Reputation point Microsoft Employee

Hi All,

I am trying to search and replace a string in word document which is stored as byte[] in database. I am referring to below sample:

I can see that text is getting updated in open XML string but same is not getting updated in file.

And I need to convert the updated Open XML string to byte[] to store it back in database. Please help.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,439 questions
0 comments No comments
{count} votes