Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Problem with load-image

From: jhagman::infa::abo::fi at: 8-Apr-2001 19:45

Hi, I am having a bit problems with load-image. What I am trying to do is to get an image from the web and show it. The way I am trying to do it is following:
>> i: load-image http://www.aug99.com/museum/amiga/bilder/img2.jpg
== ÿØÿà This is not satisfactory as the image cannot be shown with view layout [image i] On the other hand, if I read the image to a temporary file and do the load image after that it works fine.
>> write/binary %/tmp/a.jpg read/binary http://www.aug99.com/museum/amiga/bilder/img1.jpg >> i: load-image %/tmp/a.jpg
== make image! [800x600 #{ 9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D 9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9D9...
>>
What am I missing? -- Jussi Hagman CS in Åbo Akademi University Studentbyn 4 D 33 [juhagman--abo--fi] 20540 Åbo [jhagman--infa--abo--fi] Finland