使用C#Linq从数据库检索文件。 [英] File retrieve from Database using C# Linq.
本文介绍了使用C#Linq从数据库检索文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用linq从数据库中检索图像文件
I want to retrieve Image file from database with linq
var pict = db.FUNC_GET_PERSON_IMAGE_BY_ID(Convert.ToInt32(id));
var _PersonImages =db.PERSON_IMAGEs.Where(item=>item.PERSONIMAGE==(Convert.ToInt32(id)))
但错误发生超时已到期?
but error occurred timeout expired?
推荐答案
这是一篇关于使用 Binary Class [ ^ ]:http://erikej.blogspot.hu/2009/11/how-to-save-and-retrieve-images -using.html [ ^ ]。
Here is an article and sample code about using the Binary Class[^]: http://erikej.blogspot.hu/2009/11/how-to-save-and-retrieve-images-using.html[^].
Linq(可能)与您发生的超时错误无关得到。
请做谷歌搜索 [ ^ ]看如何增加超时(如果需要)。
Linq has (likely) nothing to do with the timeout error you are getting.
Please do a google search[^] to look how to increase the timeout (if required).
这篇关于使用C#Linq从数据库检索文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文