Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 4.0 转换后无法显示图像_C# 4.0 - Fatal编程技术网

C# 4.0 转换后无法显示图像

C# 4.0 转换后无法显示图像,c#-4.0,C# 4.0,我将图像转换为在SQL server中成功完成的字符串。我不知道为什么图像不显示在数据网格视图列中?通常,图像无法显示的原因可能是什么?因为在DataGridView中无法显示图像。您只能显示图像路径或二进制数据。必须使用System.IO使用命名空间 和扩展名MemoryStream,以存储它并在特殊的图片框中再次显示它

我将图像转换为在SQL server中成功完成的字符串。我不知道为什么图像不显示在数据网格视图列中?通常,图像无法显示的原因可能是什么?因为在DataGridView中无法显示图像。您只能显示图像路径或二进制数据。必须使用System.IO使用命名空间

和扩展名
MemoryStream
,以存储它并在特殊的图片框中再次显示它