[REBOL] Re: Problems rendering an image
From: tim:johnsons-web at: 28-Aug-2002 16:54
* Gabriele Santilli <[g--santilli--tiscalinet--it]> [020828 16:39]:
> Hi Tim,
>
> On Wednesday, August 28, 2002, 5:53:49 PM, you wrote:
>
> TJ> print copy t
>
> First of all, COPYing here is useless and wastes memory and time.
> Other than that, if you want to send the image as binary (as I
> suppose) you could:
>
> set-modes system/ports/output [binary: true]
> insert system/ports/output t
> ; reset binary mode if needed
>
Hi Gabriele:
I'm come a long ways since I posted this above.
I am now using
prin enbase/base read/binary to-file base-file 16
And I am getting the following (with the binary stream truncated):
between the asterisks:
******************************************************************
HTTP/1.0 200 OK
Content-type: multipart/x-mixed-replace; boundary=--myboundary
--myboundary
Content-type: image/jpeg
FFD8FFE000104A464946000101010258 ;; truncated
--myboundary
******************************************************************
<sigh>still no rendering</sigh>
Now what do you think?
Thanks Gabriele!
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com
http://www.johnsons-web.com