In attempting to stream a .pdf file, I have discovered I need to send
the following in the header:

Accept-ranges: bytes
Content-type: application/pdf
Content-Length: length

This works when sent in Perl.  However, here is what I have in my
servlet:

res.setHeader("Accept-ranges", "bytes");
res.setContentType(contentType);
res.setContentLength(fileSize);

Apparently, the above is not sending the "Accept-ranges" header
correctly because the Acrobat reader (or browser) is not recognizing it
and displaying the file only after it has been completly downloaded.
any suggestions?  Thanks.

--
Ron Parker
Software Creations            http://www.scbbs.com
TradeWinds Publishing         http://www.intl-trade.com
TradePoint Los Angeles        http://www.tradepointla.org
SiteDirector Security Server  http://livepublish.scbbs.com
Civil War Online Library      http://civilwar.scbbs.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to