想要从图像控制中保存图像 [英] want to save image from image control
本文介绍了想要从图像控制中保存图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好。任何人都可以给我代码保存图像到文件夹从asp:图像控制没有文件上传控制我已经从另一页的图像控件中获取图像。扫描图像指纹
hello to all. can anyone give me code for save image to folder from asp:image control without file upload control i already got the image in image control from another page . the image is scanned fingerprint
推荐答案
尝试以下代码:
Try below code:
string filepath = img1.ImageUrl;
using (WebClient client = new WebClient())
{
client.DownloadFile(filepath,Server.MapPath("~/Image/apple.jpg"));
}
这里img1是Image控件的ID。
Here img1 is ID of Image control.
有任何一个plzz回复
提前致谢
Has any one plzz reply
Thanks in advance
这篇关于想要从图像控制中保存图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文