如何在C#中保存转换为blob的图像?

时间:2013-03-01 07:11:23

标签: c# wpf winforms

我需要转换blob图像并插入 MYSQL 数据库..并且需要检索该数据并加载到图片框中

2 个答案:

答案 0 :(得分:0)

请看

IMage - To - Byte - Array

并且

Byte - Arrray - To - Image

这两个链接可以解决您的问题

答案 1 :(得分:0)

v_file_data = Encoding.UTF8.GetBytes(ds.Tables[0].Rows[0]["logo"]);