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

[REBOL] Re: Problems rendering an image + jpeg images not working

From: g:santilli:tiscalinet:it at: 30-Aug-2002 1:28

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 <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: