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/DSC008...' 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/DSC008...' asUrl retrieveContents contents asByteArray readStream) Levente
Laurent Laffont
2010/2/13 Mariano Martinez Peck <marianopeck@gmail.com>
I think he talks about this one
http://coweb.cc.gatech.edu/squeakbook/
2010/2/13 laurent laffont <laurent.laffont@gmail.com>
Which web page ?
Laurent Laffont
On Sat, Feb 13, 2010 at 3:42 PM, Stéphane Ducasse < stephane.ducasse@inria.fr> 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project