Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PDF File not streaming correctly

 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay... So I have all my pdf files going through the below method correct. All but 1 file. The only file that won't show up correctly the first time through is a file that is 5K large. If I hit refresh it shows up, however if its the first time through it only shows a white screen.

Here's my code.



Can anyone help!?

 
Elihu Smails
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you sure that you are actually reading anything in on the first connection. Since you are using a buffered input stream, and the file is really small, this might be a source of the problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic