如何从SQL表ASP.NET检索图像,C# [英] How to retrive image from sql table asp.net, c#

查看:60
本文介绍了如何从SQL表ASP.NET检索图像,C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我如何从图像数据类型列(sql)中检索图像
并以所需的大小显示.

Can any one tell me how to retrieve an image from image datatype column(sql)
and display in required size .

推荐答案

请参见以下线程:

如何使用asp.net(c#)的护照大小 [
See the following thread:

How to store and retrieve image in sql server with asp.net (c#) for passport size[^]


查看这些链接,您可能会有所了解
http://www.dotnetcurry.com/ShowArticle.aspx?ID=129 [ ^ ]
http://www.aspsnippets.com/Articles/SQL Server的显示图像-使用ASP.Net.aspx的数据库 [
See these link you may get some idea
http://www.dotnetcurry.com/ShowArticle.aspx?ID=129[^]
http://www.aspsnippets.com/Articles/Display-Images-from-SQL-Server-Database-using-ASP.Net.aspx[^]


使用以下代码.....

昏暗bPictureInByte()为字节= DataSet.Tables(0).Rows(0).Item(0)
昏暗的mStream作为新System.IO.MemoryStream(bPictureInByte)
昏暗_bmpDrawing作为新Drawing.Bitmap(mStream)
_bmpDrawing.Save(Application.StartupPath +"\ Temp \ FullScaleDrawing.jpg"
use the following code.....

Dim bPictureInByte() As Byte = DataSet.Tables(0).Rows(0).Item(0)
Dim mStream As New System.IO.MemoryStream(bPictureInByte)
Dim _bmpDrawing As New Drawing.Bitmap(mStream)
_bmpDrawing.Save(Application.StartupPath + "\Temp\FullScaleDrawing.jpg"


这篇关于如何从SQL表ASP.NET检索图像,C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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