C#.net read word doc from byte[]

D

Dale

Hi All,

I'm trying to read the text from a word document and display it in a
RichTextBox using C#.net. The Word document is stored in a SQL Server 2008
database using FILESTREAM. when i read back the data from the table i get the
document in a byte array - how do i get the text from the byte array??? There
are loads of articles online about how to read from a document on your file
system - which is of no use to me as i have it in a byte format.

Does anybody here have any ideas how to read from a byte array or a memory
stream??

Thanks
Dale
 
S

Shrini

I don't think there is a way to do that. Even SharePoint bring the binary
into Temp Location before rendering the data. If you deal with word to read
the data then the you need word object and your application requires access
to COM. You can always use the Packaging api to extract the data or store a
MHT version of binary on the side.

Shrini
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top