使用N层架构在gridview中显示图像 [英] displaying image in gridview using N-Tier Architecture

查看:65
本文介绍了使用N层架构在gridview中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用N层架构.我想从数据库显示在gridview中的图像.在这里我有一个疑问.我有一个称为DAL的单独的库.在DAL中,我写了所有从数据库中检索,更新,删除数据的信息.在表示层中,我想在gridview中显示图像,在这里,我要在通用处理程序中创建通用处理程序,我想再次写入从数据库中检索的数据,最后我必须使用context.respose.我可以在这里访问通用处理程序,例如使用DAL检索图像之类的数据,即从DAL访问.

I am using N-Tier Architecture. I want to display images in gridview from database. here i have one doubt. i have separate library called DAL. In DAL i wrote all the retrieving, updating, deleting data from database. here in Presentation Layer I want to display images in gridview here i am creating generic handler ok in generic handler i suppose to write again retriveing data from database and i must use context.respose lastly. here can i access in generic handler like retrieving the data like images using DAL ie., accessing from DAL.

推荐答案

请参阅这些链接..它将为您提供一些想法..

一个简单的数据库查看器-DBViewer http://www.eggheadcafe.com/community/csharp/2/10043896/convert-to-binary-picture.aspx

http://www.eggheadcafe.com/community/csharp/2/10190830/retrieving-image-from-db.aspx

http://www.vbnettutorial.net/?Id=137& Desc = Wpf-Listbox-Image-Binding-From-Db
Refer these links .. it will give you some ideas..

http://www.codeguru.com/csharp/csharp/cs_data/cachingandpeformance/article.php/c15417/Working-with-Binary-Large-Objects-BLOBs-Using-SQL-Server-and-ADONET.htm


A simple Database Viewer - DBViewer


http://www.eggheadcafe.com/community/csharp/2/10043896/convert-to-binary-picture.aspx

http://www.eggheadcafe.com/community/csharp/2/10190830/retrieving-image-from-db.aspx

http://www.vbnettutorial.net/?Id=137&Desc=Wpf-Listbox-Image-Binding-From-Db


这篇关于使用N层架构在gridview中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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