在C#中向MS Access数据库发送/从中接收PictureBox图像 [英] Sending/Receiving PictureBox Image in C# To/From MS Access database

查看:127
本文介绍了在C#中向MS Access数据库发送/从中接收PictureBox图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个Windows窗体和MS Access数据库.它具有图片框和三个按钮.一个用于将图片保存到MS Access数据库,第二个用于检索照片的按钮,另一个用于删除照片的按钮.请提供C#代码

通过madhukumar V

Hai all,
I Have a Window form and MS Access database. It have picture box and three buttons. One for saving picture to MS Access database, second button for retrive photos and other for deleting photos. please give C# codes

By madhukumar V

推荐答案

在进行工作并提出具体问题之前,您不会得到积极的回应.您知道,请努力编写代码来保存图片,然后再提出一个问题,为什么它在特定点上失败,或者如何执行保存图片的一个特定部分.要求我们为您提供一个完全书面的应用程序只会让您感到沮丧和嘲笑.祝你好运!
You''re not going to get much in the way of positive response until you do the work and come back with specific questions. You know, make an effort to write the code to save a picture, then come back with a question about why it is failing at a specific point, or how to do one specific part of saving the picture. Asking us to throw you a fully written app is only going to get you downvoted and ridiculed. Good luck!


首先,它在图片框中的事实是无关紧要的.其次,Google提供了很多有关如何执行此操作的信息.您的数据库无法保存位图",但是可以保存构成它的字节.您的Bitmap类具有从此类流构建自身或将其保存到此类流中的方法.
First of all, the fact it''s in a picture box is irrelevant. Second, Google abounds with information on how to do this. Your DB can''t save a ''Bitmap'', it can save the bytes that form it though. Your Bitmap class has methods to build itself from such a stream, or save itself to such a stream.


这篇关于在C#中向MS Access数据库发送/从中接收PictureBox图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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