Hi Tim,

On Thursday, August 29, 2002, 9:53:22 PM, you wrote:

TJ>   Gabriele is a very good resource!

;-)

Anyway, SET-MODES and GET-MODES are not much documented; they do a
lot  of  things,  among  these there's the ability to set the port
flags  that  in  previous versions you could only set when opening
the port (i.e. with /BINARY, /LINES, etc.).

>> 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
>> ...

I  don't  understand  why  you are doing it this why. Are you sure
that using just:

   set-modes system/ports/output [binary: true]
   insert system/ports/output read/binary %image-file.jpg

doesn't work?

Regards,
   Gabriele.
-- 
Gabriele Santilli <[EMAIL PROTECTED]>  --  REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

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

Reply via email to