如何从 url 获取远程 PDF 并使用 Express js 发送到客户端?
我想从 URL 获取 pdf 并通过 REST 端点将其发送到 Express (JS) 应用程序中的客户端。但是,大多数资源都集中于发送位于本地文件系统上的 PDF 文件。
I would like to fetch a pdf from a URL and send it to the client in an Express (JS) application via a REST endpoint. However, most resources are focused on sending a PDF file located on the local file system.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个效果很好的简单示例。
Here is a simple example that works great.