显示上传的图像 [英] showing uploaded image
本文介绍了显示上传的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以通过以下代码上传图片:
< asp:FileUpload ID =FileUpload1runat =server/>
但上传后,它只显示页面上图像的路径。
我想要实际上在上传完成后显示图像。
请帮我这样做.......... .....
提前感谢
解决方案
推荐
1. 从SQL显示图像使用ASP.Net的服务器数据库 [ ^ ]
2. 在Image中显示数据库中的图像在ASP.Net中不使用Generic Handler进行控制 [ ^ ]
3. 使用ASP.NET 2.0和ASP.NET 3.5从数据库保存和检索图像 [ ^ ]
尝试
上传前显示图片 [ ^ ]
上传后显示图片 [ ^
I can upload a image by the following code :
<asp:FileUpload ID="FileUpload1" runat="server" />
But after uploading, it just shows the path of the image on the page .
I want actually to show the image when uploading is complete.
Please help me to do that...............
thanks in advance
解决方案
Refer
1. Display Images from SQL Server Database using ASP.Net[^]
2. Display image from database in Image control without using Generic Handler in ASP.Net[^]
3. Save and Retrieve Images from the Database using ASP.NET 2.0 and ASP.NET 3.5[^]
Try
Show image before upload[^]
Display image after upload[^]
这篇关于显示上传的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文