download.js 263 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 // download the google logo image as base64 var casper = require('casper').create({ verbose: true }); casper.start('http://www.google.fr/', function(self) { self.echo(self.base64encode('http://www.google.fr/images/srpr/logo3w.png')); }); casper.run();