从访问数据库中检索图像并在网格视图的imagebutton中显示 [英] retrive image from access db and display in imagebutton on grid view

查看:55
本文介绍了从访问数据库中检索图像并在网格视图的imagebutton中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

expetrs
我需要将图像设置为imagebutton.图像存储在Access数据库中
和imagebutton放置在网格视图的itemtemplate字段中
有人可以帮我吗,我受了很多苦
预先感谢

hi expetrs
i need to set image to imagebutton. image is stored in access database
and imagebutton is placed in itemtemplate field of grid view
can any one please help me i am suffering a lot
thanks in advance

推荐答案

图像的路径是存储在db中还是图像本身以二进制格式存储在DB中.
如果存在路径,则只需将图像的路径设置为图像按钮.

其他
图像本身在数据库中,然后检索图像并将其保存在一些临时文件夹中,并相应地设置图像的路径
Whether path of the image is stored in db or image itself stored in DB in binary format.

If path is there, then you just need to set the path of the image to your image button.

else
the image itself is in DB, then retrieve the image save it in some temp folder and set the path of the image accordingly


这篇关于从访问数据库中检索图像并在网格视图的imagebutton中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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