sending binary data to a File
SteveC <[email protected]> Wed, 13 Jul 2005 15:19:24 +0100
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
I want to use a ruby cgi script to make an image. (Actually, make an image based on things from a database and query params) I am making a png image with rcairo (ruby cairo bindings). If I give it a File stream or $stdout from the command line it will happily write the binary png image to either. In mod_ruby it doesn't like $stdout, thinking that its an Apache::Request. It doesn't like request.output_buffer as its a String. Short of saving the file and then re reading it in using request.send_fd(), is there any way to get rcairo and mod_ruby talking? Thanks in advance have fun, SteveC [email protected] http://www.fractalus.com/steve/