Joe, thanks for the advice. The download manager classes in HEAD have a very clean design indeed, and I'm using them already to return BufferedImage to the client - works great.
In this particular case I am working with document BLOBS that are retrieved from JDBC driver as InputStream. I was hoping to see (at some point) a download manager implementation that would attach the data stream to the HTTP response, without using in-memory buffers (that, as you comment in the source, limit scalability) or temp files.
In the meantime, the hack seems to work well - although it's probably not how DWR response handling was intended to work.
Joe Walker-3 wrote:
DWR in HEAD has a way to handle binary download very cleanly, which should
make things really easy. There are some demos of fileupload and download in
the war file which might be worth a play.
Joe