图片用户控件 [英] Picture User Control

查看:48
本文介绍了图片用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天..在我忙于创建此应用程序的日子里,该应用程序在访问数据库中显示并保存图像文件。该字段具有Ole Object属性。是否有自定义用户控件?


它是一个WinForms DTR应用程序。只是希望有一种快速/简单的方法来保存和检索访问数据库中的图像文件。我知道我必须把它作为一个blob来解决,但问题是我不知道该怎么做。


只是希望有一种快速的节约方式并在我的访问数据库中检索图像..


我有一个但是它的vb6.0格式。如何将其转换为vs .Net?


提前感谢

Good day guys.. in the days i was busy creating this application that displays and saves an image file within the an access database. the field has an Ole Object property. is there a custom user control for this?


Its a WinForms DTR application. just want to have a quick/easy way of saving and retrieving image files in access database. i know that i have to work it out as a blob but the prob is that i don''t know how to do it.

Just hoping if there is a fast way of saving and retrieving images in my access database..

I have one but its in vb6.0 format. how can i convert it to vs .Net?

thanks in advance

推荐答案

你好吗?显示和保存图像?


如果您只想将其存储在数据库中,请连接并将图像插入/更新到数据库中....


您知道如何在您的应用程序中使用数据库吗?

如果您不在如何在应用程序中使用数据库
How are you "displaying" and "saving" the image?

If you just want to store it in a database then connect to and insert/update the image into the database....

Do you know how to use a database in your application?
If you don''t then check out this article on how to use a database in your application


我还在不清楚你遇到什么问题。

您应该能够使用 OleDBConnection 。您应该能够使用 OleDBDataReader 。除了oledb类之外,我之前发布的文章应该概述为了连接和检索数据库中的数据需要做什么。


-Frinny
I''m still not quite clear on what you''re having problems with.
You should be able to connect to the Access Database using an OleDBConnection. You should be able to retrieve data from the database using the OleDBDataReader. Aside from the oledb classes, the article that I posted earlier should outline what you need to do in order to connect to and retrieve data from a database.

-Frinny


关于连接数据库;它跟我很清楚。问题是在ole对象中保存和检索图像文件的过程。

我也希望它成为这种格式之王,因为代码的一致性是我想要的作品。 />
about connecting to database; its clear enough with me. the problem is the process of saving and retrieving image files in an ole object.
also i want it to be in this king of format because uniformity in code is what i want to have in my works

展开 | 选择 | Wrap | 行号


这篇关于图片用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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