• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PDF streaming

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic