图像的存储和检索 [英] Storage and retrieval of images
本文介绍了图像的存储和检索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
能否请您解释sql server2008中的图像存储和检索,还可以解释visualstudio 2010中的代码?
Can you please explain the image storage and retrieval in sql server2008 and also explain the code in visualstudio 2010?
推荐答案
从物理应用程序文件夹中存储和访问图像是比数据库更好的方法.
但是,您可能会在下面的链接中找到有关此主题的一些问题解答,该问题在此处早些时候在CodeProject上发布了.
http://www.codeproject.com/search.aspx?q = Image + SQL + Server + C%23& sbo = qa& usfc = false
Storing and accessing Images from physical application folder is better way as compare to Database.
However, you may have a look at below link for several Question-Answers posted on this topic earlier here on CodeProject.
http://www.codeproject.com/search.aspx?q=Image+SQL+Server+C%23&sbo=qa&usfc=false
您将图像的二进制数据存储在SQL Server中的字段.您可以使用ADO.net,实体框架或NHibernate检索此数据.当您使用C#处理数据时,它将以 byte[]
的形式出现
有一个CodeProject文章解释了这一切:
使用Streded Procedures和C#.net从SQL Server存储和检索图像 [ ^ ]
You store the binary data of the image in avarbinary(max)
field in SQL server. You can retrieve this data using ADO.net, Entity Framework or NHibernate. When you are working with the data in C# it will be in the form of abyte[]
there is a CodeProject article which explains it all:
Storing and Retrieving Images from SQL Server Using Strored Procedures and C#.net[^]
这篇关于图像的存储和检索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文