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
Cheers,
Sean