如何在数据库中检索pdf
问题描述:
如何通过数据库检索PDF文件?
在数据库中,仅给出名称,PDF文件存储在PDF文件夹中.
PDF文件夹在我的.net项目中创建,并在网格视图中显示结果.
[提高可读性]
How do I retrieve PDF files through a database?
In the database only name is given and PDF files are stored in PDF folder.
The PDF folder is made in my .net project and shows the result in grid view.
[Improved readability]
答
您可以使用简单的ADO.Net代码从数据库中获取PDF文件路径.检查此 [
You can get the PDF file path from the database using simple ADO.Net code. Check this[^] link for help. You will have to make some changes in the connection string and the type for the command and connection objects based on the database you are using. Still, the basic idea remains the same. Once you have got the file path, get it from the folder and show to the user.
^ ]链接可能会帮助您.
只需将pdf视为图像或任何其他大文件即可.
This[^] link may help you out.
Just treat the pdf as an image or any other large file.