Open XML: Convert open XML string to byte[]

Rahul Roshan 1 Reputation point Microsoft Employee
2022-08-29T14:59:17.907+00:00

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:

https://learn.microsoft.com/en-us/previous-versions/office/developer/officetalk2010/ee945362(v=office.11)?redirectedfrom=MSDN

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