On Sun, 14 Feb 2010, laurent laffont wrote:
Arghh it's almost done but I have a bug:
SketchMorph fromStream: ('
http://lh3.ggpht.com/_BvlW9mJ6MFc/R-p4PtCKitI/AAAAAAAAA1A/jySYN6rz_pc/DSC00801.JPG'
asUrl retrieveContents contents readStream)
fails: image format is not recognized.
In JPEGReadWriter class >> understandsImageFormat
aStream next = 16rFF answer false ???
- aStream next answers a Character instance
- 16rFF is a SmallInteger
- both equals 255.
What is the right way to correct that ?
Make sure that the stream is binary:
SketchMorph fromStream:
('http://lh3.ggpht.com/_BvlW9mJ6MFc/R-p4PtCKitI/AAAAAAAAA1A/jySYN6rz_pc/DSC00801.JPG'
asUrl retrieveContents contents asByteArray readStream)
Levente
Laurent Laffont
2010/2/13 Mariano Martinez Peck <[email protected]>
I think he talks about this one
http://coweb.cc.gatech.edu/squeakbook/
2010/2/13 laurent laffont <[email protected]>
Which web page ?
Laurent Laffont
On Sat, Feb 13, 2010 at 3:42 PM, Stéphane Ducasse <
[email protected]> wrote:
laurent have a look in the network chapter of the new blue book
(collective book available on web page)
because I do not remember but you could find some snippets going in the
same sense.
Stef
On Feb 13, 2010, at 3:29 PM, laurent laffont wrote:
(SketchMorph fromStream:
('http://code.google.com/p/pharo/logo'
asUrl retrieveContents contentStream)) openInWorld
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project