Sven Van Caekenberghe wrote
FileStream newFileNamed: '/tmp/cog.tgz' do: [ :stream | | entity | stream binary. entity := ZnClient new streaming: true; get: 'https://ci.lille.inria.fr/pharo/job/Cog%20Git%20Tracker/lastSuccessfulBuild/...'; entity. entity writeOn: fileStream ]
Thanks, Sven! You just beat me to it. The entity part was tricky. I was looking at the result of the #get:, trying to figure out what to do with the ZnLimitedReadStream... The above snippets successfully downloaded the files (I think), but there is something wrong with them. The png doesn't open (mac message about a damaged file) and the .gz doesn't uncompress (it just keeps making differently named .gz files). Sean -- View this message in context: http://forum.world.st/Downloading-a-file-tp4586900p4587681.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.