{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hi all,\n\nI am using the following code to zip a file. this is for mimetype of epub file. When i check the file in epub validator, it shows the error \"Mimetype file should contain only the string \"application/epub+zip\".\". So i checked the file using a hex editor and found the mimetype contains the following string. \n\"ï»¿application/epub+zip..\"\nmoreover it should contains 20 byte length and my mimetype is 25 byte length. Additional 3 char at beginning and 2 char at end are added to my string.\nCan anyone help me to sort out this issue?\n\nusing (MemoryStream ms = new MemoryStream())\n            {\n                //content of the file is static and is used here directly\n                using (StreamWriter w = new StreamWriter(ms, Encoding.UTF8))\n                {\n                    w.WriteLine(\"application/epub+zip\");\n                }\n                using (ZipFile zip = new ZipFile())\n                {\n                    MemoryStream msMimetype = new MemoryStream(ms.ToArray());\n                    msMimetype.Seek(0, SeekOrigin.Begin);\n                   \n                    zip.Encryption = Ionic.Zip.EncryptionAlgorithm.None;\n                    zip.EmitTimesInUnixFormatWhenSaving = false;\n                    zip.EmitTimesInWindowsFormatWhenSaving = false;                    \n                    zip.UseZip64WhenSaving = Ionic.Zip.Zip64Option.Never;\n                    zip.CompressionMethod = Ionic.Zip.CompressionMethod.None;\n                    zip.CompressionLevel = Ionic.Zlib.CompressionLevel.None;\n                    \n                    zip.AddEntry(\"mimetype\", msMimetype);\n                  \n                  \n                    zip.Save(System.IO.Path.GetTempPath() + \"\\\\\" + FileName);\n                }\n}",
    "LastUpdatedDate": "2013-09-21T23:38:07.037-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Unassigned",
      "Severity": 0,
      "Id": 0
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2013-09-21T23:38:01.917-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Zip file eliminate timestamp issue",
    "Type": {
      "Name": "Unassigned",
      "Id": 5
    },
    "VoteCount": 1,
    "Id": 16431
  },
  "FileAttachments": [
    {
      "FileId": 4814,
      "FileName": "mimetypeerror.png",
      "DownloadUrl": ".\\4814"
    }
  ],
  "Comments": []
}