在asp.net中使用c#的sql server中的映像 [英] Image in sql server using c# in asp.net

查看:62
本文介绍了在asp.net中使用c#的sql server中的映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从c#中的asp.net应用程序在sql server数据库中保存了一个图像但是当我在Web浏览器中检索图像时,图像不像原始图像那样清晰,我需要帮助这个非常重要..我希望图像清晰

解决方案

使用Handler.ashx文件显示图像。

直接调用普通空白页面查看此图片是否完美。

 <   img     src   =  ImgHandler.ashx?ImageID = 1    alt  < span class =code-keyword> =     /  >  


Chec k out this

http://www.c-sharpcorner.com/UploadFile/0c1bb2/uploading-and-displaying-images-from-database-using-Asp-Net/ [ ^ ]。

I have save an image in an sql server database from my asp.net application in c# but when i retrieve the image in the web browser the image is not as clear as original image i need help on this very important.. i want the image to be clear

解决方案

use Handler.ashx file to display image.
Directly call in a plain blank page See this image is coming perfect or not.

<img src="ImgHandler.ashx?ImageID=1" alt="" />


Check out this
http://www.c-sharpcorner.com/UploadFile/0c1bb2/uploading-and-displaying-images-from-database-using-Asp-Net/[^].


这篇关于在asp.net中使用c#的sql server中的映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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