且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何上传文件以及如何将其保存在数据库中?

更新时间:2023-02-15 12:55:41

使用 ^ ]-该链接包含一个示例.

您可以在Oracle的BLOB字段中存储任何文件内容.请记住,将文件名与数据分开存储,但要存储在同一行中.
Use a FileUpload Control[^] - the link includes an example.

You can store any file content in Oracle in a BLOB field. Remember to store the file name separately from the data, but in the same row.


是的,您可以这样做.
看看下面的文章...
1. 使用Asp.net将文件保存到Oracle 10g [ ^ ].
2. 在Oracle中上传图片 [使用ASP.Net(VB.Net)在Oracle数据库中存储和显示图像(在BLOB字段中) ) [ ^ ].

谢谢...
Yes you can do it.
Take a look at the articles below...
1. Save files to Oracle 10g using Asp.net[^].
2. Image upload in Oracle[^].
3. Storing and Displaying Image (in BLOB field) in Oracle Database using ASP.Net (VB.Net)[^].

Thanks...



请参阅下面的链接以获取类似的解决方案:
在C#中将文件上传到数据库 [使用GridView从数据库上传和下载文件 [ ^ ]
MSDN:FileUpload类 [
Hi,
Refer the links below for the similar solution:
Uploading files to database in C#[^]
Upload and Download File From Database Using GridView[^]
MSDN : FileUpload Class[^]


Hope it helps!
--Amit