使用Silverlight 4.0从数据库中获取图像 [英] fetch image from database using silverlight 4.0

查看:81
本文介绍了使用Silverlight 4.0从数据库中获取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从数据库中获取图像,我想使用varbinary(250)数据类型将该图像存储在表中,所以请告诉我如何在sql server 2008中使用上述数据类型插入任何图像.
之后,我想知道如何使用带有C#代码的silverlight 4.0应用程序显示该图像(从数据库中获取).
谢谢.

How can I fetch Image from Database , which I want to store that image in my table using varbinary(250) datatype, so tell me how can I insert any image by using above datatype in sql server 2008.
After that , I want to know that how to display that image(fetch from database) using silverlight 4.0 application with C# code.
Thanks in Adv.

推荐答案

您需要通过Web服务获取图像,然后将其显示在图像控件中.
You need to fetch the image via a web service and then display it in an image control.


查看本文:

http://www.dotnetcurry.com/ShowArticle.aspx?ID=220 [ ^ ]
Check out this article :

http://www.dotnetcurry.com/ShowArticle.aspx?ID=220[^]


这篇关于使用Silverlight 4.0从数据库中获取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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