--- Begin Message ---Thanks all for your answers. But now I want to access to some images on my disk from a rest client.I have the name of the image in a variable. Cheers Asbath On 08/12/2016 19:33, Sven Van Caekenberghe wrote: > 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 >
--- End Message ---
Re: [Pharo-users] Image Downloading
Asbath Sama biyalou via Pharo-users Thu, 08 Dec 2016 13:30:59 -0800
- [Pharo-users] Image Downloading Asbath Sama biyalou via Pharo-users
- Re: [Pharo-users] Image Downloadi... Sven Van Caekenberghe
- Re: [Pharo-users] Image Downl... Asbath Sama biyalou via Pharo-users
- Re: [Pharo-users] Image Downloadi... Blondeau Vincent
- Re: [Pharo-users] Image Downl... p...@highoctane.be