Skip to content

Instantly share code, notes, and snippets.

@dio
Created July 7, 2011 10:55
Show Gist options
  • Select an option

  • Save dio/1069291 to your computer and use it in GitHub Desktop.

Select an option

Save dio/1069291 to your computer and use it in GitHub Desktop.
fscreateWriteStream
var r = request({
method: 'GET'
, uri: root + imageSourceUrl
, headers: {'Authorization' : auth}
});
r.pipe(fs.createWriteStream('image'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment