如何将图像保存在MS Access数据库中? [英] How to save the images in an MS Access database?

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

问题描述

我正在将MS Access用作项目中的数据库.

I am using MS Access as the database in my project.

任何人都可以帮助我提出如何从该数据库保存和检索图像的想法吗?

Can anyone help me to give idea that how can i save and retrieve images from this database?

推荐答案

将图像保存在数据库中通常不是一个好主意,相反,人们通常将图像保存在磁盘上并存储它数据库中的路径.

it is generally NOT a good idea to save image in database, instead, people usually save the image on disk, and store its path in database.

如果您确实要执行此操作,请将图像的字节写入Blob列.

If you really want to do this, write the images' bytes into a Blob column.

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

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