While downloading the .docx file in code the file gets downloaded properly. But when opening it locally it a message is shown that the file is corrupted and can be repared. When I clickon ok. It gets repaired. I didnt have the problem with .doc file. Internally, the MIME type of the .docx file is saved as 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'. The .docx file is read from a content server as a binary file and also written on the application server as a binary file (line lenght 1022)
Can anyone tell why the contents of the file could not be viewed while opening in the application the file but can be viewed when saved as local file( the pop up information with a message that the file was corrupted and could be repaired appeared first. I choose the ok button for the file to be repaired and the content was then showed)?
Thanks in advance