Has anyone ever done something like this or have any ideas? The only idea I
can think of would be to actually convert the binary object into Base64 or
something and serialize it as XML along w/ some metadata also in XML. These
seems a little roundabout though.

Another idea I had was to maybe HTTP response metadata / directives but the
only problem w/ that is that I wouldn't know how to handle setting something
in the response (or might not have an opportunity) if the request was
cached.

How about response headers?

In flowscript you can do cocoon.response.setHeader('name', 'value') in front of a cocoon.sendPage that provides the actual binary data or you can use the <map:act type="set-header"> with <map:parameter>'s to add headers.

When using flowscript, the binary data has to be provided with a separate pipe, so I expect that that pipe is cached as usual, while the flowscript function that adds the headers and redirect the data has to be called each time again.

If response headers are a solution, than give it a try. You might even consider using request headers for HTML responses as well...

Cheers,
Geert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to