在 openrasta 的响应流上写入 PDF 内容
我想在 Iframe 中渲染 pdf。因此,如果我向 http://localhost/pdf/2 发出 GET 请求,它应该返回 PDF 内容响应流。另一种方法是将用户重定向到 PDF 文件的完整 URL,但我不想这样做。
提前致谢
I want to render a pdf in Iframe. So if I do a GET request to http://localhost/pdf/2, it should return PDF content in the response stream. The other way can be redirecting user to full URL of the PDF file which I don't want to do.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 InMemoryFile 和 InMemoryDownloadableFile 类。
一个例子:
you can use the InMemoryFile and InMemoryDownloadableFile classes.
An example: