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

[REBOL] Re: Output Image from Web Server to Web Browser

From: vonja::sbcglobal::net at: 13-Oct-2008 11:03

Hello Graham, I appreciate your response. Unfortunately, I attempted to apply your code with some modifications but I was unsuccessful. I WAS able to resolve the issue so if anyone is interested for a future project there will be a simple solution. I did take advantage of your switch suffix? Statement :-) It should read as: Rebol [] data: read/binary %/some/image.jpg print ["Content-Type: image/jpg" newline] ;; or replace newline with "^M^J" write-io system/ports/output data length? data ;; the below lines will not work ;; or print "Content-Type: image/jpeg^/^/" ;; or print "Content-Type: image/jpeg" ;; or print "Content-Type: image/jpeg^/" ;; or print ["Content-Type: image/jpeg" "^/^/"]