Hi, > On 8 Dec 2016, at 09:43, Asbath Sama biyalou via Pharo-users > <pharo-users@lists.pharo.org> wrote: > > > From: Asbath Sama biyalou <asamabiya...@yahoo.com> > Subject: Image Downloading > Date: 8 December 2016 at 09:43:00 GMT+1 > To: Pharo users users <pharo-users@lists.pharo.org> > > > Hi. > > I want to download images from Internet and save them on my local disk. > I will take the path of this image and put it in variable in pharo. > > I don't know how to proceed. > > Thanks
You can open images directly inside Pharo: (ZnEasy getPng: 'http://pharo.org/files/pharo.png') asMorph openInWindow. If you want, you can download to the filesystem as well: (ZnClient new url: 'http://pharo.org/files/pharo.png') downloadTo: '/tmp/'. The above uses the following as file name: 'http://pharo.org/files/pharo.png' asZnUrl file. HTH, Sven