| View previous topic :: View next topic |
| Author |
Message |
r.kirubhakar1979 Newbie

Joined: 19 Jul 2007 Posts: 1
|
Posted: Thu Jul 19, 2007 12:48 am Post subject: OpenOffice content.xml |
|
|
HI
I have an odt file. I unzip the odt file using program that I wrote manually. It open and put all the entries of odt in a specified location. After Unzip, again I want to Zip it programmatically. Also it zipped perfectly too.
The problem I am facing is, when I try to open zipped odt file using openoffice It gives a pop up like
The "odtfile" is corrupted. Should openoffice.org get repaired or not.
If I give yes the document opened as repaired document.
can any one give me the solution for this issue?
Reg
Kiru |
|
| Back to top |
|
 |
acknak Moderator


Joined: 13 Aug 2004 Posts: 4295 Location: ~ 40°N,75°W
|
Posted: Thu Jul 19, 2007 8:58 am Post subject: |
|
|
Clearly you have not re-zipped it to the same configuration it had originally.
Some things to check:
• Is the directory structure of the re-zipped file the same as the original? Make sure you are not including the temporary directory where you unzip the files in the final archive.
• Have you included all the sub-directories in the re-zipped archive? Some zip utilities may not do this unless you ask.
• Is the OS or the zip utility preserving the correct case of the filenames? CONTENT.XML is the same as content.xml to Windows but not to OOo.
• Is the compression method the same? I don't know, but I expect the zip routines in OOo only handle one or two different compression methods. |
|
| Back to top |
|
 |
|