zoukankan      html  css  js  c++  java
  • 下载打开PDF报错,其它文件OK

    IE8, 在 SSL站点上下载、打开pdf文件,报如下的异常,原因是因为IE8的bug引起的。

    https://support.microsoft.com/en-us/kb/323308

    http://stackoverflow.com/questions/3415370/ie-unable-to-download-from-unable-to-open-this-internet-site-the-request

    --------------------------------------------------------------------------------

    Unable to download AttachmentsList.aspx from 192.168.0.50.

    Unable to open this Internet site.  The requested site is either unavailable or cannot be found.  Please try again later.

    --------------------------------------------------------------------------------

                        Response.Clear();
                        Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode(fileName).Replace("+", "%20")); //resolve the filename with empty space char
                        Response.ContentType = "application/octet-stream";
                        Response.OutputStream.Write(buffer, 0, fileSize);
                        Response.Flush();
                        Response.Close();
  • 相关阅读:
    汉诺塔
    美丽联合2018前端
    游览器
    python多线程实现
    cuda toolkit
    编译器,解释器及混合编译
    大疆无人机
    SaaS PaaS IaaS mes
    CNN中权值共享的理解
    最近动作项目心得
  • 原文地址:https://www.cnblogs.com/bebass/p/4670655.html
Copyright © 2011-2022 走看看