通过上载文件控件直接在网页中发布图像 [英] Posting images in a web page directly through uploade file control
本文介绍了通过上载文件控件直接在网页中发布图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我想要一个代码,将文件上传控件中的图像链接发布到某个网页的正文.
因此无论我上传的是什么,它都可以直接在页面上查看
我正在使用c#,sql
有任何想法吗 ?
在此先感谢
hello
I want a code that post the image link in the file upload control to the body of a certain web page .
so it can directly view on the page whatever I''m uploading
I''m using c# , sql
any ideas ?
thanks in advance
推荐答案
看看以下文章:
http: //www.aspsnippets.com/Articles/Display-image-after-upload-without-page-refresh-or-postback-using-ASP.Net-AsyncFileUpload-Control.aspx [ http://howtouseasp .net/how-to-display-image-in-image-in-image-control-up-up-up-up-on-the-server-asp-net-c/ [
Have a look at following article:
http://www.aspsnippets.com/Articles/Display-image-after-upload-without-page-refresh-or-postback-using-ASP.Net-AsyncFileUpload-Control.aspx[^]
http://howtouseasp.net/how-to-display-image-in-image-control-after-upload-on-the-server-asp-net-c/[^]
要预览图像,请查看下面的文章.
使用C#在ASP.NET图像控件中预览图像 [ ^ ]
要保存和检索图像,请查看本文.
http://www.c -sharpcorner.com/UploadFile/1a81c5/convert-file-to-byte-array-and-byte-array-to-files/ [
To preview the image.check my below article.
Previewing Image in ASP.NET Image Control using C#[^]
To save and retrieve image, check this article.
http://www.c-sharpcorner.com/UploadFile/1a81c5/convert-file-to-byte-array-and-byte-array-to-files/[^]
The only change you have to make is if you have image control, then use httphandler to convert bytearray to image as in preview article.
这篇关于通过上载文件控件直接在网页中发布图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文