我想在使用wpf的sql 2008上获取图像 [英] i want to reterive Image on sql 2008 in using wpf

查看:91
本文介绍了我想在使用wpf的sql 2008上获取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Wpf项目上,我想通过wpf图像控件在sql2008中提取图像.

I am working on Wpf Project and i want to Reterive Image in sql2008 through wpf Image control.

推荐答案

尝试以下操作:
如何保存和检索SQL Server数据库中C#WPF应用程序中的图像
从WPF列表框的MS SQL Server 2008二进制字段
Try following:
How to Save and Retrieve images in C# WPF Application from SQL Server Database
Bind image from MS SQL Server 2008 binary field to WPF Listbox


要添加到上一个答案,如果您具有SQL 2008,则可以使用Filestream作为数据库中的数据类型.与数据库外部的链接相比,使用文件流可以更轻松地处理图像信息.有关更多信息,例如:如何将二进制数据存储和提取到文件流列中 [ ^ ]
To add to previous answer, if you have SQL 2008, you can use Filestream for the data type in the database. Using a filestream makes it easier to handle the image information compared to links outside the database. More info, for example: How to store and fetch binary data into a file stream column[^]


这篇关于我想在使用wpf的sql 2008上获取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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