从SQL Server获取图像 [英] get image from sql server

查看:128
本文介绍了从SQL Server获取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从没有ashx页面的sql server中检索图像.

Retrieve image from sql server without ashx page.

推荐答案

检查此文章:

使用Microsoft .NET从SQL Server存储和检索图像

使用Streded Procedures和C#.net从SQL Server存储和检索图像 [ ^ ]
Check this articles:

Storing and Retrieving Images from SQL Server using Microsoft .NET

Storing and Retrieving Images from SQL Server Using Strored Procedures and C#.net[^]


是一种将图像的服务器路径存储到表中并在图像控件中从前端访问该路径的好方法. 您可以直接将检索到的路径分配给图像"url"属性.
its a good way to store the server path of your image into the table and access that path from your front end in image control.
you can directly assign the retrieved path to image "url" property.


这正是您想要的:
使用EF在SQL Server中存储二进制数据 [ ^ ]
This is exactly what you want :
Storing binary data in SQL Server using EF[^]


这篇关于从SQL Server获取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆