Jan. 28, 2011
9:33 a.m.
Sean P. DeNigris wrote:
Is there a way to save a JPEG from the web to a file in Pharo?
FileStream forceNewFileNamed: savePath do: [ :str | str binary. str nextPutAll: (httpPathString asUrl retrieveContents contents) ]. I was looking in the Url classes, forget about FileStream (and then forgot about binary). Should this be added to Zinc? I didn't see any save methods there (like Ruby's Mechanize library). I'm going to add it to MIMEDocument and open an issue. Thanks. Sean -- View this message in context: http://forum.world.st/Downloading-a-JPEG-tp3243718p3244048.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.