• Post Reply Bookmark Topic Watch Topic
  • New Topic

PDF streaming  RSS feed

 
M Jiva
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have some strings and numeric values to be shown in pdf format at the client end, the how to pour this information into a byte stream so that the servlet can stream this information into a pdf?
like i have done a case where i established an input stream which fetched binary data(blob) from the database and then use output byte stream to put that data available in pdf format at the client end, but here how to go about it?
I am generating some values in my servlet and want these values to be available at the client browser in pdf format.. please provide some sample code to work with..
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't stream a PDF per se. It's not like a text file where you can create part of the file. The PDF doesn't have meaning until you've created the whole thing.

If you mean stream in the sense of download a dynamically generated file, that you can do. See this article
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!