• 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

servlet not displaying all the pages in PDF

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
have a very interesting problem. i have a servlet which is meant to download a PDF doco stored in an oracle database as a BLOB and display it in the users browser. The PDF is 900 pages long but in the browser it only displays 200 pages. Have tried it IE v 7 and FireFox v 3.6.8 what could be causing this ??

servlet code sniplet :




thanks in advance.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you confirmed that "cacheImpl.getPDF(ID)" actually returns the entire PDF document? 900 pages of PDF sounds like a lot of bytes to me, if I were writing the code I wouldn't load the entire document into memory. I would stream it from... wherever it's coming from... to the servlet's output stream. You may be running out of memory.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic