从mysql usig c#插入和检索图像 [英] Insert and retrieving Images from mysql usig c#

查看:69
本文介绍了从mysql usig c#插入和检索图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google和CP中搜索了很多.但是我仍然面临将图像存储在mysql数据库中的问题. mysql中的BLOB数据类型到底是什么意思?
如果我将图像转换为数组,如何将其存储在mysql中?
保存后,如何才能将其作为字节检索?.

I searched lot in google and CP. but still i m facing problems to store images in mysql database. Actualy what is meant by BLOB datatype in mysql?
If i convert image as an array, how can i store it mysql?
After saving how can i retrieve it as a byte?.

推荐答案

BLOB:二进制大对象.不仅在MySql中,这对于任何数据库管理系统都是如此.

http://en.wikipedia.org/wiki/Binary_large_object [搜索 [使用ASP.NET在MySQL中存储图像 [
BLOB : Binary Large Object. Not only in MySql, this goes true for any database management system.

http://en.wikipedia.org/wiki/Binary_large_object[^]

Did you really searched a lot? I doubt. I did this search[^], and found a lot of relevent articles. One of them is on Cp itself.

Storing Images in MySQL using ASP.NET[^]


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

在此处阅读有关BLOB的信息:使用二进制大对象(BLOB) [ ^ ]
These articles will help you:
Storing Images in MySQL using ASP.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)[^]


这篇关于从mysql usig c#插入和检索图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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