if you do not open the fie and put filedata is the downloaded file still corrupt?

you can not really just write data to a word document, as a text file, you should be using Word automation, to do that, or possibly xml