如何使用asp.net vb在sql数据库中插入pdf,word [英] how do I insert pdf, word in sql database using asp.net vb
本文介绍了如何使用asp.net vb在sql数据库中插入pdf,word的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用asp.net vb在sql数据库中插入pdf,word?
how do I insert pdf, word in sql database using asp.net vb?
推荐答案
一个简单的谷歌搜索会给你很多很多例子。 />
您可以将文件保存为二进制文件并存储在db中。这是一个例子: http://stackoverflow.com/questions/2579373/saving-any-file-to-in-the-database-just-convert-it-to-a-byte-array [ ^ ]
就个人而言,我更喜欢将文件存储在硬盘上,然后将文件路径存储在数据库中。
无论哪种方式都有效。
A simple google search will give you many, many examples.
You can save the file as binary and store in db. Here is an example: http://stackoverflow.com/questions/2579373/saving-any-file-to-in-the-database-just-convert-it-to-a-byte-array[^]
Personally, I prefer storing the file on the hard drive and then storing the path to the file in the database.
Either way will work.
这篇关于如何使用asp.net vb在sql数据库中插入pdf,word的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文