{"action":"created","issue":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/511","labels_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/511/labels{/name}","comments_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/511/comments","events_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/511/events","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/511","id":54830599,"number":511,"title":"How to zip an image","user":{"login":"ccorcos","id":1794527,"avatar_url":"https://avatars.githubusercontent.com/u/1794527?v=3","gravatar_id":"","url":"https://api.github.com/users/ccorcos","html_url":"https://github.com/ccorcos","followers_url":"https://api.github.com/users/ccorcos/followers","following_url":"https://api.github.com/users/ccorcos/following{/other_user}","gists_url":"https://api.github.com/users/ccorcos/gists{/gist_id}","starred_url":"https://api.github.com/users/ccorcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccorcos/subscriptions","organizations_url":"https://api.github.com/users/ccorcos/orgs","repos_url":"https://api.github.com/users/ccorcos/repos","events_url":"https://api.github.com/users/ccorcos/events{/privacy}","received_events_url":"https://api.github.com/users/ccorcos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-20T00:49:48Z","updated_at":"2015-01-30T07:12:49Z","closed_at":null,"body":"I'm trying to download a zip including the images using this package:\r\n\r\nhttps://atmospherejs.com/udondan/jszip\r\n\r\nI can't seem to find any way to get the image data. Any thoughts?"},"comment":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/comments/72163005","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/511#issuecomment-72163005","issue_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/511","id":72163005,"user":{"login":"raix","id":1136718,"avatar_url":"https://avatars.githubusercontent.com/u/1136718?v=3","gravatar_id":"","url":"https://api.github.com/users/raix","html_url":"https://github.com/raix","followers_url":"https://api.github.com/users/raix/followers","following_url":"https://api.github.com/users/raix/following{/other_user}","gists_url":"https://api.github.com/users/raix/gists{/gist_id}","starred_url":"https://api.github.com/users/raix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raix/subscriptions","organizations_url":"https://api.github.com/users/raix/orgs","repos_url":"https://api.github.com/users/raix/repos","events_url":"https://api.github.com/users/raix/events{/privacy}","received_events_url":"https://api.github.com/users/raix/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T07:12:49Z","updated_at":"2015-01-30T07:12:49Z","body":"The transform read/write gives you:\r\n```js\r\nvar zlib = require('zlib');\r\nvar gzip = zlib.createGzip();\r\n// ...\r\ntransformRead: function(fileObj, readStream, writeStream) {\r\n  // Unzip from store\r\n  readStream.pipe(gzip).pipe(writeStream);\r\n},\r\ntransformWrite: function(fileObj, readStream, writeStream) {\r\n  // Zip to store\r\n  readStream.pipe(gzip).pipe(writeStream);\r\n}\r\n```"}}