[Zope-dev] Streaming Response

Oliver Bleutgen myzope@gmx.net
Thu, 01 May 2003 11:23:59 +0200


Chris Withers wrote:
> Oliver Bleutgen wrote:
> 
>> You might want to stream multimedia files with a streaming server but 
>> manage them in zope, 
> 
> 
> This is a very good point...
> 
> ...but sureley this is already quite easy to do at the application level?

Nope, not if you would use something like Ape, I think, if I read Shanes 
comment correctly:

 > To do this, we'd need minimal support from the application.  OFS.File
 > needs to delegate the specifics of data storage and retrieval to a
 > subobject.  Ape could take the opportunity to replace that subobject
 > with something that reads and writes the file directly.

But this doesn't expose enough, what you'd need would be something like 
an "external path", which could be the filesystem path in case of Ape or 
something more exotic when you are using other storages, which offer 
alternative ways to serve their data (oracle file system for instance).
Since this information is only known to the storage, but can be 
valuable, there should be a way to get it.

cheers,
oliver