如何在c#中的windows窗体应用程序中从图像框保存图像到sql server 2008 [英] How to save image to sql server 2008 from image box in windows form application in c#

查看:51
本文介绍了如何在c#中的windows窗体应用程序中从图像框保存图像到sql server 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经制作了一个Windows应用程序,并且连同其他值我给了一个连接到网络摄像头的图片框,我可以通过savefiledialog将它保存在笔记本电脑的所需位置,但我无法直接保存没有打开任何showdialog到数据库。

我在数据库中保存图像格式的图像。

请帮我解决你的建议...

I have made a windows application and along with other values I have given a picture box which is connected to web cam, and I am able to save it in desired location of my laptop through savefiledialog but i not able to save it directly to database without opening any showdialog.
I am saving the image in image format in database.
Please help me with your suggetions...

推荐答案

看看这个:为什么我得到参数无效。我从数据库中读取图像时出现异常? [ ^ ]您需要的代码位于底部 - 但无论如何都可能值得阅读其余部分,因为它解释了保存图像的原因就这样。
Have a look at this: Why do I get a "Parameter is not valid." exception when I read an image from my database?[^] The code you need is at the bottom - but it might be worth reading the rest anyway as it explains why to save the image in that way.


这篇关于如何在c#中的windows窗体应用程序中从图像框保存图像到sql server 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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