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: gscottjones::mchsi::com at: 30-Aug-2002 4:26

From: "Jason Cunliffe"
> I am still a bit confused by this thread.
Me too! ;-)
> Please can you post the full working script and form ?
Certainly. Of course, you will want to change your paths and pic names. #!/path/to/rebol --cgi -s REBOL [] print "Content-type: image/jpeg^/" set-modes system/ports/output [binary: true] insert system/ports/output read/binary %//rebol/view/nyc.jpg I creatively named the script "jpeg.cgi" and tossed it into my local website stuff in the cgi-bin directory (if you are on a *nix, then you will need to do a CHMOD to 755, or whatever), cranked up Apache, and cranked up IE6.0, then typed in the url: http://gsj/cgi-bin/jpeg.cgi What I personally could *not* get to work (or at least to work reliably) was the multipart/x-mixed-replace that Tim was seeking. I am beginning to wonder if, as Graham pointed out, that this may be more of a Internet Explorer problem than a REBOL or protocol problem. I don't currently have any other browser installed (he says with considerable embarrassment and wonder at why in the heck Microsoft became so insidiously and incredibly huge). It is important to note that the "x" in the mime name means experimental. I guess is it too experimental for Microsoft's more recent browsers to fully and reliably support. If there are any further questions, I would be happy to shed further confusion. ;-) --Scott Jones