我们如何将图像插入和检索到mysql数据库中 [英] how can we insert and retrieve images into the mysql database

查看:123
本文介绍了我们如何将图像插入和检索到mysql数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

在我的Windows应用程序中,我想将图片从图片框存储或插入到mysql数据库中,我们如何才能以简单的方式实现此目的,以及如何从数据库中将图片检索到图片框.

问候

ginnas

hello

in my windows application i wanted to store or insert the image from the picturebox to the mysql database how can we achive this in simple manner,and how to retrieve it from the database to the picturebox.

regards

ginnas

推荐答案

这些文章将为您提供帮助:
使用.NET在MySQL中存储图像 [ C#相册查看器 [相同的示例代码-部分1 [ ^ ]
相同的示例代码-部分2 [ ^ ]

在这里阅读有关BLOB的信息:使用二进制大对象(BLOB) [ ^ ]

请参考:
在MySQL中插入和显示图像 [ ^ ]

类似的讨论此处 [
These articles will help you:
Storing Images in MySQL using .NET[^]
C# Photo Album Viewer[^]
Above articles might not be exactly what you are looking for but have enough information to understand and do the work you are trying to.

Just another set I found now that looks promising:
Sample code for the same - Part 1[^]
Sample code for the same - Part 2[^]

Read here about BLOBs: Working with binary large objects (BLOBs)[^]

Have a look for reference:
Inserting and displaying images in MySQL [^]

Similar discussion here[^]


这篇关于我们如何将图像插入和检索到mysql数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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