[英]Approach for Cross Platform Support PDF download using javascript / API
Is there any way to download the file that supports all the platforms web, mobile app etc?有没有办法下载支持所有平台web、移动应用程序等的文件?
We have a web application that developed on angular 8, we have multiple clients (80+) who are accessing our application using IFrame.我们有一个在 angular 8 上开发的 web 应用程序,我们有多个客户端(80 多个)正在使用 IFrame 访问我们的应用程序。
We have functionality that downloads the pdf file by API response type octet-stream, download is working fine on browsers, but not working on android/ios apps.我们有通过 API 响应类型八位字节流下载 pdf 文件的功能,下载在浏览器上工作正常,但在 android/ios 应用程序上不工作。 because it requires native code but our application is a web app.
因为它需要本机代码,但我们的应用程序是 web 应用程序。
Can anyone please help us to the best approach that can download files on both browser / mobile apps?谁能帮助我们找到可以在浏览器/移动应用程序上下载文件的最佳方法? using angular / C# web API.
使用 angular / C# web API。
Note: Kindly don't delete this question by saying any code reference etc, I am looking for the approach.注意:请不要通过说任何代码参考等来删除这个问题,我正在寻找方法。
<object data="your_url_to_pdf" type="application/pdf">
<embed src="your_url_to_pdf" type="application/pdf" />
</object>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.