WSS 3.0 changing various document's content!?
Hello:
I am implementing a simple document authentication for my application. To do so, I am comparing the document's contents that was saved from a previous date to the current document. If they match (a long with other keys), I consider it authenticated.
This works fine but during my testing, I found that *.DOC*, *.MSG have issues. Other file types such as *.TIF, *.BMP, *.TXT, *.PDF, etc.. work just fine. I haven't check that many file types but this is an issue.
Apparently, after I save this content on the SPListItem, the content changes. I verified this by checking the SPListItem object's File object's OpenBinary method. After I upload the same document, the byte array is identical. As soon as I update the SPListItem to save this data within one of the fields, the byte array from the OpenBinaryM method is different. This means that Sharepoint is altering the document? I am really hoping that isn't the case.
Anyone have any ideas?
|