如何在WebApplication中的表中动态显示二进制映像 [英] How to Display Binary Images Dynamically In A Table in WebApplication

查看:99
本文介绍了如何在WebApplication中的表中动态显示二进制映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨....



我正在从数据库中检索数据并动态显示在表格中

我曾经使用过该代码在.cs文件中

Hi....

I Am Retrieving Data From Database And Displaying In Table Dynamically
For That I Had used The Code in .cs file

 StringBuilder b = new StringBuilder();
        
  b.Append("<table style="background-color:#f3f3f3; border: #336699 3px solid; ");<br mode="hold" />        b.Append("width:750px; font-size:10pt; font-family:Verdana;" cellspacing="0" cellpadding="3">"); 

b.Append("<tr><td colspan="4" style="background-color:#336699; color:white;">");
        b.Append("Product Details"); b.Append("</td></tr>");
        b.Append("<tr><td style="width:80px;">Product Name</td>");
        b.Append("<td style="width:350px;">Product Description</td>");
        b.Append("<td style="width:50px;">Product Price</td>");
        b.Append("<td style="width:200px;">Product Image</td></tr>");
 b.Append("<tr>");
        b.Append("<td>" + table.Rows[0]["ProductName"].ToString() + "</td>");
        b.Append("<td>" + table.Rows[0]["ProductDescription"].ToString() + "</td>");
        b.Append("<td>" + table.Rows[0]["ProductPrice"].ToString() + "</td>");
      
        b.Append("<td>" + table.Rows[0]["ProductImage"].ToString() + "</td>");  // Here I am unable to Display The Image ..I Had Tried A lot by giving the                                                                                                                                       Imageurl..but it is not possible.

        b.Append("</tr></table>");



请帮我....


pls Help me....

推荐答案





可能会帮助你:



在SQL Server中存储或保存图像 [ ^ ]


您好,



您可以使用图像处理程序将二进制数据转换为图像。



搜索f或者那个。如果您需要进一步的帮助,我将



谢谢
Hi,

You can use Image handler for converting Binary data to images.

Search for that. if you need further help i will

Thank you


这篇关于如何在WebApplication中的表中动态显示二进制映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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