如何显示数据库中的图像 [英] How to Display image from data base

查看:65
本文介绍了如何显示数据库中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,先生,
我的问题是我将图像保存在一个文件夹(联合)中,其中保存了用他的ID创建的另一个文件夹而不是照片.
所以我想像那样展示那张照片

Hello Sir,
my problem is that i save a image in a folder(Joint) where another folder created with his Id than photo is save.
so i want to display that photo like that

<img alt="" border="0" height="100" src='../Admin/AdminImage/Photo/Gallery/JOINT/<%# DataBinder.Eval(Container.DataItem,"JointImageName") %>'

 width="100"  title='<%# DataBinder.Eval(Container.DataItem,"JointImageName") %>'>



在DataList的帮助下,但它不起作用.
您能告诉我为什么会发生这种情况吗?非常感谢您.



with the help of DataList but it not working.
can you told me why that will be happen.I am very thankful to you.

推荐答案

你好朋友,
就像你上面说的那样,
我将图像保存在一个文件夹(联合)中,其中保存了用他的ID创建的另一个文件夹而不是照片."
因此,传递已保存在Joint文件夹中的图像的链接.
在您的解决方案中,您还缺少图像文件名.
您刚刚传递了比"Joint"下一个文件夹.

所以最后,正如Prera​​k patel所说,请传递该图像的示例值.


希望您能在下一个解决方案中找到答案.
hello friend,
as you say above,
"i save a image in a folder(Joint) where another folder created with his Id than photo is save."
So pass the link of the images that you have saved in the Joint folder.
And in your solution you also missing the image-file name.
You just passed the next folder than ''Joint''.

So finally as Prerak patel said please pass the example values for that images.


hope.. you will get your solution in the next.


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

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