Hi,
ODF 1.2 spec says, that mimetype file SHALL be the first one in the ODT.
Why signed ODT documents do not have mimetype as the first file in
the ZIP? ;-)
correct file:
00000000 50 4b 03 04 14 00 00 08 00 00 ed 49 23 3e 5e c6 |
PK.........I#>^.|
00000010 32 0c 27 00 00 00 27 00 00 00 08 00 00 00 6d 69 |
2.'...'.......mi|
00000020 6d 65 74 79 70 65 61 70 70 6c 69 63 61 74 69 6f |
metypeapplicatio|
00000030 6e 2f 76 6e 64 2e 6f 61 73 69 73 2e 6f 70 65 6e |n/
vnd.oasis.open|
00000040 64 6f 63 75 6d 65 6e 74 2e 74 65 78 74 50 4b 03 |
document.textPK.|
wrong ODT file:
00000000 50 4b 03 04 14 00 00 08 00 00 31 3b 9d 3d 00 00 |
PK........1;.=..|
00000010 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 43 6f
|..............Co|
00000020 6e 66 69 67 75 72 61 74 69 6f 6e 73 32 2f 73 74 |
nfigurations2/st|
00000030 61 74 75 73 62 61 72 2f 50 4b 03 04 14 00 00 08 |atusbar/
PK......|
Do we create illegal ODT files?
Why do we open such files when they are not correct ODT files?
--
Pavel Janík
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org