Elizabeth,

Tomcat does support this if I understand you correctly.

The following should hopefully achieve this for you (Put these into a JSP):

ByteArrayOutputStream ba = new ByteArrayOutputStream();

Read your PDF into ba .......

response.setContentType("application/pdf");
response.setContentLength(ba.size());
ba.writeTo(response.getOutputStream());
response.getOutputStream().flush();

I hope this makes sense and helps!

Steve

-----Original Message-----
From: Elizabeth Fisher [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 1:01 PM
To: Tomcat Users List
Subject: byte serving PDFs


Does Tomcat support byte serving of PDFs?

-Elizabeth

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

Reply via email to