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

[REBOL] Output Image from Web Server to Web Browser

From: vonja:sbcglobal at: 11-Oct-2008 22:12

Hello Rebol Group: I'm attempting to output a binary image from a server (i.e., Linux) cgi script to a web browser using the below codes but I've been unsuccessful. I've scoured Rebol sources on and offline to no avail. Thanks in advance for your help. --Von For example: Rebol [] data: read/binary %/some/image.jpg print "Content-Type: image/jpg^/" ;; or "Content-Type: image/jpeg^/^/" ;; or "Content-Type: image/jpeg" write-io system/ports/output data length? Data ;; or print data ;; or print join "Location: " data ;; with or w/o print join "Expires: 0" newline