将二进制图像显示到Gridview中 [英] Display Biary Image into Gridview

查看:142
本文介绍了将二进制图像显示到Gridview中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要显示一个二进制图像.我用谷歌搜索,发现很多链接都行不通..

我通过ImageID将DatafieldUrl传递到了其他页面.

在另一页中,我写了字节[]

Hi,
I need to Display a binary image. i googled and found lot of links None works..

I passed DatafieldUrl to other page with ImageID.

In other page i wrote byte []

Response.ContentType = dr["img_contenttype"].ToString();
Response.BinaryWrite( (byte[]) dr["img_data"] );




但是静态图像未显示在Gridview中.

请帮助

Prathamesh




But still image is not displayed in Gridview.

please help

Prathamesh

推荐答案

MSDN帮助您:
http://msdn.microsoft.com/en-us/library/Aa479350 [ ^ ]

或看看这篇文章:
http://www.highoncoding.com/Articles/207_Displaying_Images_from_Database_in_GridView.aspx [
MSDN help you:
http://msdn.microsoft.com/en-us/library/Aa479350[^]

Or take a look at this article:
http://www.highoncoding.com/Articles/207_Displaying_Images_from_Database_in_GridView.aspx[^]


看看在GridView中显示数据库中的图像 [

这篇关于将二进制图像显示到Gridview中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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