aspose file tools*
The moose likes I/O and Streams and the fly likes PDF File not streaming correctly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "PDF File not streaming correctly" Watch "PDF File not streaming correctly" New topic
Author

PDF File not streaming correctly

Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
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!?



By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Elihu Smails
Ranch Hand

Joined: Jan 12, 2005
Posts: 37
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PDF File not streaming correctly