Save Word Doc as byte array in C#

  • Thread starter Thread starter Steve Holland
  • Start date Start date
S

Steve Holland

Hi,

We have a web app which reads in a Word 2000 template (.dot), replaces some
fields, then saves it off to the filesystem. This all works fine. What we
would now like to do is to save the document directly to an SQL Server 2000
database. We already have the functionality to save files to the database.
What we are missing is the ability to output the word doc as a byte array
directly. We could save the document back to the filesystem as we are
currently doing, and then read it back in and save it to the database, but
this does seem very inefficient. Are there any methods we could use on the
Word document object? we had a quick look and there didn't seem to be
anything obvious.

Any help, suggestions, etc. would be gratefully received.

Thanks in advance

Steve
 
Back
Top