{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/509","labels_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/509/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/509/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/509/events","html_url":"https://github.com/aws/aws-sdk-js/issues/509","id":57579191,"number":509,"title":"Download file using Javascript","user":{"login":"AlaRuba","id":1168883,"avatar_url":"https://avatars.githubusercontent.com/u/1168883?v=3","gravatar_id":"","url":"https://api.github.com/users/AlaRuba","html_url":"https://github.com/AlaRuba","followers_url":"https://api.github.com/users/AlaRuba/followers","following_url":"https://api.github.com/users/AlaRuba/following{/other_user}","gists_url":"https://api.github.com/users/AlaRuba/gists{/gist_id}","starred_url":"https://api.github.com/users/AlaRuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlaRuba/subscriptions","organizations_url":"https://api.github.com/users/AlaRuba/orgs","repos_url":"https://api.github.com/users/AlaRuba/repos","events_url":"https://api.github.com/users/AlaRuba/events{/privacy}","received_events_url":"https://api.github.com/users/AlaRuba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-js/labels/Question","name":"Question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-13T09:52:45Z","updated_at":"2015-02-23T20:12:02Z","closed_at":"2015-02-23T20:12:02Z","body":"Hi,\r\n\r\nI can get the data from my S3 bucket. However, the file is in memory. I'm wondering how to download the file. I don't see any documentation on this.\r\n\r\n```\r\ns3.getObject(params, function(err, data) {\r\n    if (err) console.log(err, err.stack); // an error occurred\r\n    else    {\r\n         console.log(data)\r\n    }          // successful response\r\n  });\r\n```\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/comments/75621835","html_url":"https://github.com/aws/aws-sdk-js/issues/509#issuecomment-75621835","issue_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/509","id":75621835,"user":{"login":"AdityaManohar","id":966440,"avatar_url":"https://avatars.githubusercontent.com/u/966440?v=3","gravatar_id":"","url":"https://api.github.com/users/AdityaManohar","html_url":"https://github.com/AdityaManohar","followers_url":"https://api.github.com/users/AdityaManohar/followers","following_url":"https://api.github.com/users/AdityaManohar/following{/other_user}","gists_url":"https://api.github.com/users/AdityaManohar/gists{/gist_id}","starred_url":"https://api.github.com/users/AdityaManohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdityaManohar/subscriptions","organizations_url":"https://api.github.com/users/AdityaManohar/orgs","repos_url":"https://api.github.com/users/AdityaManohar/repos","events_url":"https://api.github.com/users/AdityaManohar/events{/privacy}","received_events_url":"https://api.github.com/users/AdityaManohar/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T20:12:02Z","updated_at":"2015-02-23T20:12:02Z","body":"I'm closing this issue out as the question seems to be answered. Feel free to re-open this issue, or open another issue if you have other questions."}}