C
charleswesley
I have a document management tool I have built as a Web app. It takes
a file a user submits and saves it to a table in a SQL 2000 database
(Image datatype).
I have a download.aspx file that returns a file the user has
requested.
This has worked for all files I have tested against except for Office
2007 files.
For example, when a user requests test.docx, they are prompted to save
as or open the file.
Regardless of which option they choose, when they open the file Word
2007 displays the following error dialogue boxes:
"The Office Open XML file Test.docx cannot be opened because there are
problems with the contents."
Details:
"The file is corrupt and cannot be opened."
Word 2007 then "recovers" the contents of the document by clicking
"OK" to a dialogue prompt, and the file is there w/ all of its
content.
By reading the file into a binary array and saving to the database,
and then returning the file upon request, something is getting
garbled.
Is there a "right" way to save an Office 2007 document to a database?
Why wouldn't my current method work?
a file a user submits and saves it to a table in a SQL 2000 database
(Image datatype).
I have a download.aspx file that returns a file the user has
requested.
This has worked for all files I have tested against except for Office
2007 files.
For example, when a user requests test.docx, they are prompted to save
as or open the file.
Regardless of which option they choose, when they open the file Word
2007 displays the following error dialogue boxes:
"The Office Open XML file Test.docx cannot be opened because there are
problems with the contents."
Details:
"The file is corrupt and cannot be opened."
Word 2007 then "recovers" the contents of the document by clicking
"OK" to a dialogue prompt, and the file is there w/ all of its
content.
By reading the file into a binary array and saving to the database,
and then returning the file upon request, something is getting
garbled.
Is there a "right" way to save an Office 2007 document to a database?
Why wouldn't my current method work?