表中的图像插入 [英] Image Insertion in Table

查看:74
本文介绍了表中的图像插入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我必须在不使用图像处理程序的情况下将图像插入数据库..以前,我正在插入该图像的路径,但是现在我必须在二进制格式中插入图像,并且还检索该图像以显示在我的屏幕中..... .
谁能帮助我....


i have to insert image in database without using image handler.. previuosly i was inserting the path of that image ,but now i have to insert image in binary formate and also retrive that image to display in my screen........
Can any one please help me....

推荐答案

你好...


将字段的数据类型设置为图像,然后将其转换为二进制数据并存储在数据库中,然后检索时间.使用通用处理程序在Gridview中显示图像,并在通用处理程序中将二进制转换为图像...
并从Gridview图像字段DataField属性调用通用处理程序....
Hello...


Set Datatype Of Field as Image And Convert To Image To Binary Data And Store In Database And Then Retrive Time Use Generic Handler For Displaying Image In Gridview And In Generic Hander U Convert Binary To Image...
And Call Generic Hander From Gridview Image Field DataField Property.......


这篇关于表中的图像插入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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