tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Tucker" <ctuc...@epangea.com>
Subject RE: Byte Serving PDF's
Date Wed, 14 Nov 2001 23:39:20 GMT
Ok, so now I want to know more. :-)  This sounds like a potentially very
useful solution to an irritating problem... are there any issues with
increased file sizes or anything?  As far as byte-by-byte sending of data,
it's really easy to write a custom application that runs as a server to do
this (I did something similar for mp3's in about 200 lines with thread
support and id3 parsing), and you can then also take advantage of a
high-performance native language to offer low overhead per requesting
process (over, e.g. Tomcat or Apache) if you want to.  If you have to use
Tomcat, I'm afraid I'm not sure of a best approach.  Whatever happens, I'd
be interested to hear of your solution.

Chris

-----Original Message-----
From: MacDonald, Todd [mailto:Todd_MacDonald@tvratings.com]
Sent: Wednesday, November 14, 2001 2:59 PM
To: 'Tomcat Users List'
Subject: RE: Byte Serving PDF's


Yes.  It's not only possible, but support for it is built in to most modern
web servers.

The PDF has to be "optimized" for byte-serving and the web server has to be
capable of byte-serving.

So my question remains.  Anyone out there done it or know how to configure
Tomcat 4 to do it?

-T

-----Original Message-----
From: Chris Tucker [mailto:ctucker@epangea.com]
Sent: Wednesday, November 14, 2001 5:48 PM
To: Tomcat Users List
Subject: RE: Byte Serving PDF's


Is this even possible?  From my understanding of the PDF format, it is
inherently random-access and relies on the entire file being available
before it can be displayed.

-----Original Message-----
From: MacDonald, Todd [mailto:Todd_MacDonald@tvratings.com]
Sent: Wednesday, November 14, 2001 2:24 PM
To: 'Tomcat Users List'
Subject: RE: Byte Serving PDF's


The PDF's are pre-existing.  I need to "byte serve" them (for page-at-a-time
access via the Acrobat Reader plug-in in the client's browser).

Currently we have a servlet that reads the file and streams the whole thing
back.  Some of the PDF's are quite large (13 megs).  This means that the
user has to wait until all 13 megs are received before s/he can view it.

Byte-serving solves that problem, I just don't know how to do it.

-T

-----Original Message-----
From: Jim Urban [mailto:jim.urban@netsteps.net]
Sent: Wednesday, November 14, 2001 4:54 PM
To: Tomcat Users List
Subject: RE: Byte Serving PDF's


Do you want to dynamically generate the PDF on the fly and return it
directly to the browser or to simply "serve" PDF files?  If you want to do
the first, check out the FOP website and have a look at the FOPServlet
source code.  This assumes you can make the contents of the PDF available in
XML format for processing by FOP.

Jim

-----Original Message-----
From: MacDonald, Todd [mailto:Todd_MacDonald@tvratings.com]
Sent: Wednesday, November 14, 2001 1:53 PM
To: Tomcat-User (E-mail)
Subject: Byte Serving PDF's


Anyone know how (or better yet, have some code to) byte serve PDF's through
Tomcat 4?

-T

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message