Re: [Pharo-users] Image Downloading

2016-12-08 Thread Asbath Sama biyalou via Pharo-users
--- 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 Pha

Re: [Pharo-users] Image Downloading

2016-12-08 Thread Sven Van Caekenberghe
Hi, > On 8 Dec 2016, at 09:43, Asbath Sama biyalou via Pharo-users > wrote: > > > From: Asbath Sama biyalou > Subject: Image Downloading > Date: 8 December 2016 at 09:43:00 GMT+1 > To: Pharo users users > > > Hi. > > I want to download images from Internet and save them on my local disk.

Re: [Pharo-users] Image Downloading

2016-12-08 Thread p...@highoctane.be
Save to disk and open in a Window: | image | 'http://www.w3schools.com/css/paris.jpg' in: [ :url | image := (ZnEasy get: url) contents. 'file.jpg' asFileReference writeStreamDo:[ :stream | stream nextPutAll: image. (ImageReadWriter formFromStream: image readStream) asMorph openInWindowLabeled: ur

Re: [Pharo-users] Image Downloading

2016-12-08 Thread Blondeau Vincent
Hi, Here is a first idea of how to do it : image := (ZnEasy get: 'http://www.w3schools.com/css/paris.jpg') contents. file := 'file.jpg' asFileReference. [stream := file writeStream. stream nextPutAll: image. ]ensure: [stream close]. ImageReadWriter formFromStream: file readStream. Cheers, Vin

[Pharo-users] Image Downloading

2016-12-08 Thread Asbath Sama biyalou via Pharo-users
--- Begin Message --- 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 --- End Message ---