[
  {
    "Id": "197574",
    "ThreadId": "58410",
    "Html": "<p>Hello,<br>I need to create an ocf zip container. Has anybody done that before ?&nbsp;The extract from the <a title=specification href=\"http://www.idpf.org/ocf/ocf1.0/download/ocf10.htm\">specification</a>&nbsp;below&nbsp;shows the&nbsp;requirements:<br><br>- ZIP Containers MUST only include uncompressed files or Flate-compressed files within the ZIP arch&nbsp;<br>- OCF ZIP Containers MUST encode File System Names using UTF-8. <br>- OCF ZIP Containers MUST set the &lsquo;version needed to extract&rsquo; fields to the values 10, 20 or 45 ...<br>- OCF ZIP Containers MUST set the &lsquo;compression&rsquo; method field to the values 0 or 8<br>- In ZIP Container MUST be a file by the ASCII name of &lsquo;mimetype&rsquo; ... The file MUST be neither compressed nor encrypted and there MUST NOT be an extra field in its ZIP header<br><br>there is an additional requirement to exclude &quot;extra file attributes&quot; like it is done with the -X Option of InfoZip. Don't know if that is relevant on windowssystems.</p>\r\n<p>I do not know anaything about zip. Is there anything special in that requirements and is possible to do that with DotNetZipLib?</p>\r\n<p>thanks in advance</p>\r\n<p>kind regards</p>\r\n<p>hpv</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-06-03T23:06:55.123-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "197603",
    "ThreadId": "58410",
    "Html": "<p>I don't know OCF or OEBPS.</p>\r\n<p>But, it seems like it would just work.</p>\r\n<p>I also don't know what the InfoZip -X option is supposed to do.&nbsp;</p>\r\n<p>Have you tried it?</p>",
    "PostedDate": "2009-06-04T00:48:34.253-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "197646",
    "ThreadId": "58410",
    "Html": "<p>Hello Cheeso,</p>\r\n<p>thanks for your answer.</p>\r\n<p>As far as I understand the -X-Option &quot;Do not save Extended Attributes or uid/gid and file&nbsp;times&quot; it is for unix-systems, but I'm not sure.&nbsp; That is something <strong>I</strong> have to find out.</p>\r\n<p>kind regards</p>\r\n<p>hapevau</p>",
    "PostedDate": "2009-06-04T02:51:13.623-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "198807",
    "ThreadId": "58410",
    "Html": "<p>ok, and so have you tried to create the zip file according to the requirements you have?</p>\r\n<p>The requirement that &quot;version need to extract must be 10, 20 or 45&quot;&nbsp; - will just happen.&nbsp; Those are the only values that DotNEtZip will produce in a zip file.</p>\r\n<p>The UTF-8 encoding of filesystem information will happen if you use UseUnicodeAsNecessary, and if the filenames actually need UTF-8.&nbsp; If the filenames can be encoded in IBM437 (~ASCII), then IBM437 will be used.&nbsp; Not sure if this is a problem for your consumer of OEBPS OCF zip files, but it is in compliance with the zip spec and I would guess it would be no problem for whatever system is reading the zip file.</p>\r\n<p>The file of name &quot;mimetype&quot; is easy to do - you must set CompressionMethod to 0 on the ZipEntry.&nbsp; &nbsp; It will not be encrypted if you don't set the Password property on the ZipEntry.</p>\r\n<p>The InfoZip program can embed &quot;Extra&quot; fields in the zip file.&nbsp; DotNetZip does not do this.</p>\r\n<p>So I think you should be able to create the zip file as you need.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-06-07T14:04:21.247-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]