Byte Ranges

2003-04-01 Thread Donie Kelly
Hi all

Can anybody explain how my service can support byte ranges in the GET
request. When data is requested from our application it comes from a
database and we cannot ask it for a specific range of bytes. 

My question is, will Tomcat look after this automatically and discard the
leading bytes if required and stop at the end byte range?

Thanks for any insights...
Donie

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



RE: Byte Ranges

2003-04-01 Thread Ralph Einfeldt
AFAIK you have to implement it on your own
if the datasource is not a file.

To see how to implement it you might have a look at 
the tomcat source:

http://cvs.apache.org/viewcvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java?rev=HEADcontent-type=text/vnd.viewcvs-markup

(Sorry for the line wraps)

 -Original Message-
 From: Donie Kelly [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 01, 2003 11:25 AM
 To: Tomcat Users List (E-mail)
 Subject: Byte Ranges
 
 Can anybody explain how my service can support byte ranges in the GET
 request. When data is requested from our application it comes from a
 database and we cannot ask it for a specific range of bytes. 
 
 My question is, will Tomcat look after this automatically and 
 discard the
 leading bytes if required and stop at the end byte range?
 

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