将图像从asp保存到文件夹:图像控件 [英] Save image to a folder from an asp:Image control

查看:85
本文介绍了将图像从asp保存到文件夹:图像控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想将图像保存到文件夹中;图像在asp中:图像控件
任何想法plzzzz

hi ,
I want to save an image into a folder;And image is in an asp:Image control
Any idea plzzzz

推荐答案

引用:
文件上传控制 [如何将图像保存到数据库中的文件夹和图像路径中使用asp.net基于数据库中的图像路径在gridview中显示文件夹中的图像 [将图像保存到文件夹 [ ^ ]
Refer:
FileUpload Control[^]
How to save images into folder and images path in database and display images from folder in gridview based on images path in database using asp.net[^]
Save image to Folder[^]


选中此项.
固件文件上传到文件夹
http://www.aspdotnet-suresh.com/2011/03/how-to-save-images-into-folder-and.html [ http://www.c-sharpcorner.com/uploadfile/mahesh/fileupload10092005172118pm/fileupload.aspx [ ^ ]

从图像控件到文件夹.

http://stackoverflow.com/questions/8374284/save-image- from-image-control-to-website-directory [ ^ ]
Check this.
Frm file upload to folder
http://www.aspdotnet-suresh.com/2011/03/how-to-save-images-into-folder-and.html[^]

also this.

http://www.c-sharpcorner.com/uploadfile/mahesh/fileupload10092005172118pm/fileupload.aspx[^]

from image control to folder.

http://stackoverflow.com/questions/8374284/save-image-from-image-control-to-website-directory[^]


System.Drawing.Image im = System.Drawing.Image.FromFile("ImageUrl");
im.Save("path to save");



"ImageUrl"应为完整路径,以获取完整路径,您可以使用

server.mappath("imagename")



"ImageUrl" should be full path to get full path u can use

server.mappath("imagename")


这篇关于将图像从asp保存到文件夹:图像控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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