如何使用sql从数据库(oracle)存储和获取文件 [英] how to store and fetch a file from database(oracle) using sql

查看:87
本文介绍了如何使用sql从数据库(oracle)存储和获取文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从oracle上传和下载文件.我正在将网站开发为大学项目.

how to upload and download a file from oracle.As i m developing a website as a college project. plz rply fast.

推荐答案

将文件放入字节[]并将其放入数据库中.
Put the file in a byte[] and put that in the database.


数据类型您可能要使用的是BLOB.因此,使用关键字Oracle + BLOB + C#进行搜索将为您提供许多起点.例如,请查看以下MSDN文章:
The data type you might want to use is BLOB. So googling with keywords Oracle + BLOB + C# will give you lots of starting points. For example have a look at this MSDN article:
Oracle LOBs

[ ^ ]


这篇关于如何使用sql从数据库(oracle)存储和获取文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆