如何检索存储在SQL Server数据库中的pdf文件,并使用VB.NET在pdf viewer控件中查看它

如何检索存储在SQL Server数据库中的pdf文件,并使用VB.NET在pdf viewer控件中查看它

问题描述:

我如何检索存储在vb.net数据库中的pdf



我尝试了什么:



已尝试从字节数组中获取文件名但无法执行此操作

how do i to retrieve a pdf which is stored in the database in vb.net

What I have tried:

have tried out to get the file name from the byte array but unable to do so

假设你的pdf文件存储在BLOB字段中...



ASP片段:使用C#和VB.Net读取和写入BLOB数据到SQL Server数据库 [ ^ ]

读取和写入BLOB数据到Microsoft SQL或Oracle数据库 [ ^ ]
Assuming your pdf file is stored in BLOB field...

ASP snippets: Read and Write BLOB Data to SQL Server database using C# and VB.Net[^]
Reading and Writing BLOB Data to Microsoft SQL or Oracle Database[^]