使用基于 ssl/https 在 iframe 中显示 pdf

Display pdf in iframe using ssl/https based

我想在 iframe 中显示 PDF 以供用户在下载文件或打印之前预览,

我使用字节数组将我的报告文件转换为 pdf,然后显示它。

一切都很完美,直到我需要 ssl/https。

因此我必须将我的应用程序更改为 ssl/https 谁能告诉我如何在这种情况下显示 pdf。

感谢收听和阅读我的问题。

这是我的代码

        reportDocument.Load(reportPath);
        reportDocument.SetDataSource(dataSet);
        _contentBytes = StreamToBytes(reportDocument.ExportToStream(ExportFormatType.PortableDocFormat));
       .....
       //setting header
       .....

       //then flush
       stream.Flush();

我在 问题是我的 chrome 浏览器中的 pdf reader。 所以我在商店搜索 pdf 查看器中更新了我的 chrome reader.. 就这样..