[squeak-dev] Modern way to load a picture from the web?
H. Hirzel
hannes.hirzel at gmail.com
Thu Mar 21 10:51:49 UTC 2019
Hello
What is a good modern way in Squeak to load a picture from the web?
I am looking for an equivalent of
| pngPicURL aStream |
pngPicURL := 'https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Squeak-x11.png/617px-Squeak-x11.png'.
aStream := HTTPSocket httpGet: pngPicURL.
(ImageReadWriter formFromStream: aStream) asMorph openInHand
And answer or just comments are welcome.
Thank you.
Kind regards
Hannes
More information about the Squeak-dev
mailing list
|