When a user requests to download a document, I write a PDF file to HttpResponse using the HttpResponse.OutputStream.Write method. It works in every browser except Firefox (3.5.8). Firefox sometimes displays a file, and sometimes it displays the actual stream of bytes. When it displays a stream of bytes, the HTTP response never ends. I see the status "data transfer", and the byte stream ends with EOF. After a while, I get a "reset" window.
alt text http://img31.imageshack.us/img31/7907/displaybytes.png alt text http://img193.imageshack.us/img193/7246/displayendofstream.png alt text http://img211.imageshack.us/ img211 / 1774 / timeout.png
Here is the response header:
HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Length: 103185 Content-Type: application/pdf Expires: -1 Server: Microsoft-IIS/7.0 X-AspNet-Version: 2.0.50727 Content-Description: stuff.pdf Content-Disposition: inline;filename="stuff.pdf" X-Powered-By: ASP.NET Date: Mon, 22 Feb 2010 16:15:38 GMT
, . , Response.End() .
Response.End()
, , mime . , FF .
, , , mime.
, Firefox Acrobat.
, - , , . .
, , . , . . , .
Mozilla , .
, Content-Disposition "", FF. " ". "", .
Content-Disposition: attachment; filename=stuff.pdf
, PDF , inline, , . VSS , PDF, , . PDF , . , , PDF , readonly .
, .
,
, PDF-, ? , PDF , .
Source: https://habr.com/ru/post/1733916/More articles:How to increase the size of the launch command line to increase the target - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1733912/how-can-i-transform-a-remote-none-bare-repos-to-a-bare-reopos-without-re-clone-in-local-machine-in-git&usg=ALkJrhjMHjsQwICk3r2KciArYBYoC23GRQAssociating FriendlyNames from the registry with a letter for USB sticks - c ++How to get the executable path of a command line tool in Objective-C (Foundation framework)? - objective-cПолучить xpath из xml node в рекурсивной функции - xmlC ++ class for arrays with arbitrary indices - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1733918/are-there-any-downsides-to-passing-in-an-erlang-record-as-a-function-argument&usg=ALkJrhgjvX-ahTgf8o2ZF6tsvAD4IXWaXwScrolling vertically in one div and horizontal in another - javascriptHow to use contact API for Android 1.x and 2.x at the same time? - androidDateTime :: createFromFormat in PHP <5.3.0 - phpAll Articles