Re: PDF needs ExternalFile Object with byte-range capability?
Brad, (sorry about not quoting Brad, we're still in the throws of mail server hell) We've kicked around the idea of an ExternalFile object, and I started a small project that fizzed out. My question was where to draw the line, do we make it a simple pipe to one file, or a Folderoid object that 'mounts' a part of a filesystem into Zope? The first would be pretty simple, the second would be pretty hard, IMO. Out of curiosity, what would byte ranging buy you? Do some clients request ranges? I think I read about this in the HTTP 1.1 spec... Michel PS We used to use WorldSock on the ISP I worked at a few years ago, I chuckled a bit when I saw you on our list, cuz I'm familiar with your products like your getting familiar with ours. ;)
Michel Pelletier wrote:
We've kicked around the idea of an ExternalFile object, and I started a small project that fizzed out. My question was where to draw the line, do we make it a simple pipe to one file, or a Folderoid object that 'mounts' a part of a filesystem into Zope? The first would be pretty simple, the second would be pretty hard, IMO.
A while back someone posted this product called ExternalLink which may serve your purposes: On 1/22/99 The Dragon De Monsyne <dragondm@delta.integral.org> said:
Well, I've been having fun poking around Zope, and whilst learning, I came up with a simple,but usefull Zope product, ExternalLink.
It's used to represent hyperlink, and is usefull for linklists. It: - can check links - also keeps track of statistics on the remote document (size, mimetype & last modified date) - can count click-thrus - has a facility for batch creation of ExternalLink objects by uploading a simple textfile
And it includes a ZPublisher.Client script runnable from a cronjob to automate link checking (when the script runs, it does the actual contacting of the remote server itself to avoid blocking the Zope server)
So, get it, use it, love it :>
http://www.integral.org/~dragondm/python/ExternalLink.tar.gz
Hope this helps, Michael Bernstein.
On Wed, 3 Feb 1999, Michel Pelletier wrote: <snip>
Out of curiosity, what would byte ranging buy you? Do some clients request ranges? I think I read about this in the HTTP 1.1 spec...
Byte serving in this instance would allow the PDF plugin to grab page 33 out of a 300 page PDF without downloading the whole file. --------------------------------------------------- - Scott Robertson Phone: 714.972.2299 - - CodeIt Computing Fax: 714.972.2399 - - http://codeit.com - ---------------------------------------------------
On 3 Feb 99, at 13:40, Scott Robertson wrote:
Out of curiosity, what would byte ranging buy you? Do some clients request ranges? I think I read about this in the HTTP 1.1 spec...
Byte serving in this instance would allow the PDF plugin to grab page 33 out of a 300 page PDF without downloading the whole file.
Exactly! I'll have dial-up users wanting to view my 2 megabyte .pdf file. They can immediately begin viewing the first page if I supported byte ranges... Otherwise the entire document must download first. Should byte-ranges go into the file object, or be up at the server level? It really only applies to certain content types.. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 We must come down from our heights, and leave our straight paths, for the byways and low places of life, if we would learn truths by strong contrasts; and in hovels, in forecastles, and among our own outcasts in foreign lands, see what has been wrought upon our fellow-creatures by accident, hardship, or vice. - Richard Henry Dana, Jr. 1836
On Wed, Feb 03, 1999 at 04:17:53PM -0500, Michel Pelletier wrote:
Brad,
(sorry about not quoting Brad, we're still in the throws of mail server hell)
We've kicked around the idea of an ExternalFile object, and I started a small project that fizzed out. My question was where to draw the line, do we make it a simple pipe to one file, or a Folderoid object that 'mounts' a part of a filesystem into Zope? The first would be pretty simple, the second would be pretty hard, IMO.
The first would be enough I think for MOST people in the near term...
Out of curiosity, what would byte ranging buy you? Do some clients request ranges? I think I read about this in the HTTP 1.1 spec...
Um, byte-serving allows PDF files to be served as PAGES, instead of the whole thing... great for large manuals, it only requests the bytes it actually needs to draw the page... 0-1000, 1000-2000, 3000-4000, etc. CHris -- | Christopher Petrilli | petrilli@amber.org
participants (5)
-
Brad Clements -
Christopher G. Petrilli -
Michael Bernstein -
Michel Pelletier -
Scott Robertson