[REBOL] Re: Problems rendering an image + jpeg images not working
From: tim:johnsons-web at: 29-Aug-2002 11:53
* G. Scott Jones <[gscottjones--mchsi--com]> [020829 11:00]:
> From: "Tim Johnson"
> > I was not able to find any examples like this in the documentation
> > mostly using the Rebol/Core User's Guide Version 2.3
> >
> > Can anyone point me to rebol specific documentation on this?
> > for instance, I didn't know about set-modes until Gab and Scott
> > pointed them out. help set-modes is quite terse.
>
> Hi, Tim,
Hi Scott:
> I stole it from Gabriele!. ;-)
Gabriele is a very good resource!
> I frankly don't remember where I first saw this kind of stuff, but it might
> have been an example in the rebol library. The option, by the way, is:
>
> t: read/binary %//rebol/view/nyc.jpg
> ...
> dat: copy ""
> foreach u t [append dat to-char u]
> set-modes system/ports/output [binary: true]
> write-io system/ports/output dat length? dat
> ...
>
> Who knows, maybe this version will work better.
Me-thinks buffering is a better way to go, yes!
> You can find out some more about get-modes and set-modes at:
> http://www.rebol.com/docs/core25.html
Thanks, that's going to be very useful.
> I read several documents about the experiemental multipart mime, and played
> with it for about an hour over lunch. I could not get even a simple
> multipart text/html example to run properly on my Apache/REBOL/IE6 set-up on
> Win98. I am unsure why. I am out of time. Best of luck figuring this one
> out!
> --Scott Jones
That's a tough one all right (at least for my feeble brain). With Allen
Kamp's help, I set up a feature to send html as an email message. I had
a headache by the time I was finished.
Thanks again...
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com
http://www.johnsons-web.com