{"action":"closed","issue":{"url":"https://api.github.com/repos/Stuk/jszip/issues/276","repository_url":"https://api.github.com/repos/Stuk/jszip","labels_url":"https://api.github.com/repos/Stuk/jszip/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/Stuk/jszip/issues/276/comments","events_url":"https://api.github.com/repos/Stuk/jszip/issues/276/events","html_url":"https://github.com/Stuk/jszip/issues/276","id":146569397,"number":276,"title":"nodebuffer bytelength limitation","user":{"login":"huaSolna","id":1877012,"avatar_url":"https://avatars.githubusercontent.com/u/1877012?v=3","gravatar_id":"","url":"https://api.github.com/users/huaSolna","html_url":"https://github.com/huaSolna","followers_url":"https://api.github.com/users/huaSolna/followers","following_url":"https://api.github.com/users/huaSolna/following{/other_user}","gists_url":"https://api.github.com/users/huaSolna/gists{/gist_id}","starred_url":"https://api.github.com/users/huaSolna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huaSolna/subscriptions","organizations_url":"https://api.github.com/users/huaSolna/orgs","repos_url":"https://api.github.com/users/huaSolna/repos","events_url":"https://api.github.com/users/huaSolna/events{/privacy}","received_events_url":"https://api.github.com/users/huaSolna/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-07T10:06:08Z","updated_at":"2016-04-08T09:33:36Z","closed_at":"2016-04-08T09:33:36Z","body":"I have following code for generate zip file and response to my client side.\r\n```javascript\r\nvar testStr =  '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Version xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" VersionId=\"2.0\"><DetailedVersion>2.0 RC</DetailedVersion></Version>';\r\n\r\nzip.file(example.xml, testStr);\r\nvar buffer = zip.generate({type:\"nodebuffer\"});\r\nres.writeHead('Content-Length', buffer.byteLength);\r\n// res.write(buffer, 'binary');\r\nres.end(buffer, 'binary');\r\n```\r\n\r\nThe problem for me is if `buffer.byteLength` greater then 239 bytes, then I can't open it, and get error `Error 1 - Operation not permitted.` on my Mac. Need help to find out what I did wrong.\r\n\r\nconsole zip object:\r\n\r\n```\r\n files:\r\n   { 'bcf.version':\r\n      { name: 'bcf.version',\r\n        dir: false,\r\n        date: Thu Apr 07 2016 11:49:05 GMT+0200 (CEST),\r\n        comment: null,\r\n        unixPermissions: null,\r\n        dosPermissions: null,\r\n        _data: '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Version xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" VersionId=\"2.0\"><DetailedVersion>2.0 RC</DetailedVersion></Version>',\r\n        options: [Object],\r\n        _initialMetadata: [Object] } },\r\n  comment: null,\r\n  root: '',\r\n  clone: [Function] }\r\n\r\n```"}}