From: Tim Bates Date: 2003-08-23T20:47:24+09:00 Subject: Apache::Request isn't a File Hi all, I'm trying to get Ruby-GD to play nicely with Apache. Ideally, Ruby-GD would just write directly to Apache's output, to enable me to dynamically generate images without using a temporary file. But when I do this: im.png $stdout GD complains that the Apache::Request object assigned to $stdout isn't of type File - a prime example of where duck typing should be applied but isn't, since Apache::Request provides nearly all the methods of File and would probably work perfectly if it weren't for this check. So, apart from modifying the source of GD, is there a neat way of somehow encapsulating an Apache::Request object in a descendant of File so that this will work? Tim Bates -- tim@bates.id.au