1

嗨,我目前正在使用 C# 语言在 Asp.net 中工作。

请任何人告诉我如何在 asp:image 控件中显示存储在服务器表(数据类型图像)中的图片。谢谢。

4

1 回答 1

0

You'll have to save the image in some folder on your website, and use a URL to link to that image. Since this is going to be done for every request, I'm guessing you can understand this is not a best practice.

The correct way to do this is save all images in a single directory on your website, and in the DB only store the URL for that image.

于 2012-12-12T09:23:12.300 回答