Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PDF File Downloading Vs Streaming

45 views
Skip to first unread message

Aandi Inston

unread,
Jun 24, 2002, 12:04:07 PM6/24/02
to
Save the streamed file to disk instead of opening it, then compare it
with the original. What has changed, if anything?

Aandi Inston

Aandi Inston

unread,
Jun 24, 2002, 12:42:46 PM6/24/02
to
Ok, it may be that your script or server is wrongly sending
Accept-ranges: bytes. That would cause Acrobat to send requests for
only part of the file, and if you sent the whole file it would appear
corrupt.

Aandi Inston

Ganesh Janakiraman

unread,
Jun 24, 2002, 5:12:58 PM6/24/02
to
I added a Header to set "Accept-Ranges" to "none". But the problem still persists.
Can all pdf files be streamed (that open normally on the Acrobat Reader)?

Ganesh Janakiraman

unread,
Jun 24, 2002, 6:33:46 PM6/24/02
to
You are absolutely correct in saying that it is sent to the browser in a single data block. This is to avoid direct access to the PDF file and hence we read the file's byte stream and spit it out in the Response buffer.
The Stream length matches the file size - however I need a tool to read the HTTP headers to see what comes back from the server ad then check the Content-Length.
The HTTPCMD that comes with the Windows Resource kit is not working. If you know of any tool to read the HTTP Response that would be great.
Thanks for your help.
Ganesh

Aandi Inston

unread,
Jun 24, 2002, 6:12:15 PM6/24/02
to
It may not matter, but the key is Accept-ranges not Accept-Ranges.

I think you are using streaming in a different way that I would use
it. You are just sending it to the browser in a single data block?

Check that the Content-Length is correct.

Aandi Inston

Aandi Inston

unread,
Jun 24, 2002, 9:58:43 PM6/24/02
to
I use telnet.

Aandi Inston

Ganesh Janakiraman

unread,
Jun 25, 2002, 3:28:26 PM6/25/02
to
The file size and the Content Length match perfectly.
Do I need to Linearize the file mandatorily? Because there is no such option within Crystal to save the PDF as a Linearized file.
Also it is happening only for a very few files and the only common pattern I observe (albeit weird) is that all of them are 1 page files and are between 8300 to 8900 bytes long (though a lot of other 1 page files of similar length go through). None of the 2 or more page files have failed (of size 10k and more)

Aandi Inston

unread,
Jun 25, 2002, 4:50:58 PM6/25/02
to
No, linearization should be optional.

It is very odd. What happens if for those files you add a little
padding (binary zeroes)?

Aandi Inston

0 new messages