使用文件流在“解决方案资源管理器"的文件夹中保存图像 [英] Save image using file stream in Solution Explorer's Folder

查看:83
本文介绍了使用文件流在“解决方案资源管理器"的文件夹中保存图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专业人士,
我想使用文件流将图像保存到Solution Explorers文件夹中的C#Windows应用程序中,并且我还想在数据网格视图单元格单击事件中检索该图像.
我正在寻求您的最大赞赏...如果我错了,请纠正我.

Hi professionals,
i want to save image using file stream into C# windows application in Solution Explorers Folder and i also want to retrieve that image on data grid view cell click event.
i am seeking for your best appreciation...and please correct me if i am wrong.

推荐答案

http://www.dotnetspider.com/forum/161046-C-upload-image.aspx [

试试这个

Try this

Name = System.IO.Path.GetFileName(Uploadfile.PostedFile.FileName);
FileName = (Server.MapPath("..") + ("\\Images\\" + Name));
Uploadfile.PostedFile.SaveAs(FileName);



Uploadfile是您的文件上传控件...
图片是您的目标文件夹...



Uploadfile is your fileupload control ...
Images id your destination folder...


引用链接
链接 [
Refer the link
Link[^]


这篇关于使用文件流在“解决方案资源管理器"的文件夹中保存图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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