使用C#将图像保存在Sql Server中 [英] Image save in Sql Server using C#
本文介绍了使用C#将图像保存在Sql Server中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨Frnds,
我的表包含列为emp_id int,emp_name varchar(30),emp_image图像...对于此表,我必须保存C#页面的详细信息.我已将图像转换为byte [].
我们的dbtype如下DbType.Object,DbType.Decimal,DbType.Binary,DbType.Int64,DbType.byte等...在这种情况下,如何将图像byte []发送到数据库(我必须使用什么dbtype). />
database.AddInParameter(dbCommand,
" ,DbType.Binary,徽标);
在SQL Server中存储图像[^] [database.AddInParameter(dbCommand,
"@inLogo", DbType.Binary, logo);
解决方案
Use this link
Store Images in SQL Server[^][^]
这篇关于使用C#将图像保存在Sql Server中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文