Status: New
Owner: ----
New issue 3605 by
[hidden email]: [ENH]: Added #saveTo: method to
MIMEDocument
http://code.google.com/p/pharo/issues/detail?id=3605When downloading via Url classes, this makes it more straight-forward to
save (an image for example), now:
aUrl retrieveContents saveAs: savePath.
instead of:
FileStream forceNewFileNamed: anAbsolutePathString do: [ :str |
str binary.
str nextPutAll: (aUrl retrieveContents contents) ].
Attachments:
MIMEDocument-saveAs.st 324 bytes