Actually, add this to your code for now:

   load-image: func [url] [load-thru/binary url]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Carl Sassenrath
Sent: Sunday, April 08, 2001 7:25 PM
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: Problem with load-image


Looks like a bug.  Use this instead.

   img: load read-thru/binary http:....


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Jussi Hagman
Sent: Sunday, April 08, 2001 9:45 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] Problem with load-image


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                           [EMAIL PROTECTED]
20540 Åbo                                   [EMAIL PROTECTED]
Finland
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to