RE: streaming pdfs through servlet...

2001-07-10 Thread Chris Gross
Thanks for everyones help, I finally found the solution. I figured I send it back to the list in case anyone else encounters this same problem in the future. I had to set the content length before writing the bytes. So I just had to add: response.setContentLength(pdf.length); to the servlet

RE: streaming pdfs through servlet...

2001-07-10 Thread Cox, Charlie
Title: RE: streaming pdfs through servlet... you may want to do something for your exception - at least write to stdout to indicate you got an error. If you get an exception thrown, you have not written anything to the response, therefore you will get a blank screen. Charlie

RE: streaming pdfs through servlet...

2001-07-09 Thread Deacon Marcus
Hi, Seems you send it in one big piece, leaving buffering entirely to the container. Try writing 2048 (or whatever) bytes, flushing, writing next 2048-bytes piece, flushing, etc until the end of file, should help, at least that's how I do it in similar situations and encountered no problems so far

Re: streaming pdfs through servlet...

2001-07-09 Thread Peter Hrastnik
I had a similar problem in a php project in the past. There are browser/acrobat-plugin combinations that cause strange behaviour when passing through a pdf stream. Try using some other browser/acrobat combinations to track your problem down. If another combination works, you know that your jsp co