I get

[Wed Jul 13 12:05:08 2005] [error] mod_ruby: /usr/local/lib/site_ruby/1.8/cairo.rb:21:in `new_png': wrong argument type Apache::Request (expected File) (TypeError)

when attempting to pipe output from rcairo through cgi using

  cr = Context.new
  cr.set_target_png($stdout , FORMAT_ARGB32, WIDTH, HEIGHT);

It is ok with stdout when running on the command line, but not when
through mod_ruby. My two questions are 1) Can I get the output stream
from cgi and give it to rcairo somehow and if that works 2) will it be
happy having binary data thrown down that pipe to the browser?

TIA

have fun,

SteveC steve / fractalus.com http://www.fractalus.com/steve/