将图像加载并保存到MS Access中 [英] Load and Save Images into MS Access

查看:84
本文介绍了将图像加载并保存到MS Access中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问问是否有人知道如何使用ActiveX数据对象数据控件6.0(OLEDB)将图像加载并保存到ms访问中吗?

我需要立即响应...

I would like to ask if somebody know how to load and save images into ms access using ActiveX Data Object Data Control 6.0 (OLEDB)?

I need immediate response please...

推荐答案

而不是将图像存储在数据库中,您应该将它们存储在文件系统中,并且数据库仅包含文件名. Access将无法以可接受的性能处理大量图片.
Instead of storing images in the database, you should store them on the file system, and the database contains the filename only. Access will not be able to handle large amounts of pictures with an acceptable performance.


我认为将图像存储在DB中不是一个好主意.相反,您应该做的是:

1.将虚拟目录配置为保存图像.
2.使用相对于虚拟目录的路径来使用网站中的图像.
3.将此虚拟路径存储在数据库中.

但您仍然想将图像保存在数据库中,可能想要阅读有关BLOB数据操作和支持该操作的数据库.
I don''t think it is a good idea to store image in DB. instead what you should do is:

1. Have a virtual directory configured to save images.
2. use the path relative to virtual directory to use the images in the website.
3. Store this virtual path in the database.

but still you wanna save the images in Database you may wanna read about the BLOB data operations and the databases that support this.


请参阅下面的链接.对您有帮助

http://www.a1vbcode.com/app-5156.asp [
see on belowing Link.It would be helpful for you

http://www.a1vbcode.com/app-5156.asp[^]


这篇关于将图像加载并保存到MS Access中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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