如何在访问数据库中存储图像并检索回c#图片框? [英] How to store image in access database and retrieve back to c# picture box ?

查看:130
本文介绍了如何在访问数据库中存储图像并检索回c#图片框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要存储我的徽标并找回图片框中的设计视图吗?如何存储图片并检索它?

Hi,

I need to store my logo and retrieve back to design view in picture box ? How to store picture and retrieve it ?

推荐答案

参考:读取和保存图像 - 从数据库使用C-Sharp [ ^ ]


请尝试以下链接 -

视频 [ ^ ]

C#从数据库保存和加载图像 [ ^ ]

在MSAccess中存储图像 [ ^ ]

使用OLEDB插入图像 [ ^ ]
Try the following links -
Video[^]
C# Save and Load Image from Database[^]
Store Images in MSAccess[^]
Inserting Images using OLEDB[^]


您需要在数据库表中输入一列二进制数据

现在使用 byte [] ,你可以玩它。



参见例子,

在SQL Server中存储或保存图像 [ ^ ]
C#从数据库保存和加载图像 [ ^ ]

http://www.redmondpie.com/inserting-in-and-retrieving-image-from-sql-server-database-using-c/ [ ^ ]



-KR
You need to have one column in your database table typed as Binary Data.
Now using byte[] , you can play with it.

See the example,
Store or Save images in SQL Server[^]
C# Save and Load Image from Database[^]
http://www.redmondpie.com/inserting-in-and-retrieving-image-from-sql-server-database-using-c/[^]

-KR


这篇关于如何在访问数据库中存储图像并检索回c#图片框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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