在Windows窗体应用程序中使用ado.net,C#从sql server 2008获取映像 [英] Getting an image from sql server 2008 using ado.net, C# in windows forms application

查看:79
本文介绍了在Windows窗体应用程序中使用ado.net,C#从sql server 2008获取映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我创建了一个程序,包括使用ado.net,C#插入,保存和查找发票数据到sql server 2008。它包含从扫描仪扫描图片并将其保存到数据库的代码。我使用sqlDataReader从数据库中读取数据,包括图像字段,但我在将图像字段的数据类型从数据库转换为datareader到picturebox时遇到问题。我需要帮助将datareader中的数据类型转换为picturebox图像。

感谢

Hi every body,
I create a program that include insert, save and find invoice data to sql server 2008 using ado.net, C#. it contain code to scan pictures from scanner and save it to the database. i use sqlDataReader to read data from the database including the image field but i have a problem in converting datatype of image field from database to datareader to picturebox. i need help in converting datatype in datareader to picturebox image.
thanks

推荐答案

参考下面的文章

使用C#向/从Microsoft SQL发送/接收PictureBox图像服务器 [ ^ ]
Refer the below article
Sending/Receiving PictureBox Image in C# To/From Microsoft SQL SERVER[^]


这篇关于在Windows窗体应用程序中使用ado.net,C#从sql server 2008获取映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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