plainText has encoded word document base64 string
byte[] buffer = Convert.FromBase64String(plainText);
using (Stream ms = new MemoryStream())
{
ms.Write(buffer, 0, (int)buffer.Length);
}
I tried to open word document using OpenXML SDK
WordprocessingDocument wordDoc = WordprocessingDocument.Open(stream, true)
But it throws File contains corrupted data error.
I've also gone through MSDN link OpenXML SDK
I've created a word document using this byte[] buffer But what I'm trying to achieve is, read the content present in document without creating(saving) the word document. What am I missing ?