c# wpf 实现文件上传下载功能

上传者: ln_prince_angelllove | 上传时间: 2019-12-21 20:12:16 | 文件大小: 139KB | 文件类型: rar
最近在做一个项目,用到上传下载功能,因此我整理了一个Damo(使用三层架构所写),与同行们分享一下,希望对同行们有所帮助,我附带了一个数据库表,通过这个Damo可以实现将任何格式的文件上传至数据库和本地服务器,同时欢迎浏览者提出宝贵的意见。

文件下载

资源详情

[{"title":"( 80 个子文件 139KB ) c# wpf 实现文件上传下载功能","children":[{"title":"上传下载Damo","children":[{"title":"数据库.doc <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo","children":[{"title":"UploadAndDownloadDemo","children":[{"title":"UploadAndDownloadDemo.csproj <span style='color:#111;'> 4.65KB </span>","children":null,"spread":false},{"title":"App.xaml.cs <span style='color:#111;'> 317B </span>","children":null,"spread":false},{"title":"MainWindow.xaml.cs <span style='color:#111;'> 4.93KB </span>","children":null,"spread":false},{"title":"MainWindow.xaml <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 201B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"App.xaml <span style='color:#111;'> 332B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"UploadAndDownloadDemo.pdb <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo_MarkupCompile.i.cache <span style='color:#111;'> 342B </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo.csproj.GenerateResource.Cache <span style='color:#111;'> 917B </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo_MarkupCompile.cache <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo.g.resources <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"UploadAndDownloadDemo.exe <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false},{"title":"MainWindow.g.cs <span style='color:#111;'> 5.75KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.45KB </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo.csprojResolveAssemblyReference.cache <span style='color:#111;'> 16.69KB </span>","children":null,"spread":false},{"title":"App.g.i.cs <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 20.88KB </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"App.g.cs <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"MainWindow.g.i.cs <span style='color:#111;'> 5.75KB </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"EnclouseFolder","children":[{"title":"AutoCAD快捷命令.doc <span style='color:#111;'> 62.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"Model.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo.pdb <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false},{"title":"Dal.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"Bll.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo.exe <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"Dal.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"Bll.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"UploadAndDownloadDemo.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"Model.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"UploadAndDownloadDemo.sln <span style='color:#111;'> 4.45KB </span>","children":null,"spread":false},{"title":"Dal","children":[{"title":"Class1.cs <span style='color:#111;'> 155B </span>","children":null,"spread":false},{"title":"Dal.csproj <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"UploadAndDownloadDal.cs <span style='color:#111;'> 857B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"Dal.csprojResolveAssemblyReference.cache <span style='color:#111;'> 5.76KB </span>","children":null,"spread":false},{"title":"Dal.csproj.FileListAbsolute.txt <span style='color:#111;'> 569B </span>","children":null,"spread":false},{"title":"Dal.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.61KB </span>","children":null,"spread":false},{"title":"Dal.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"Model.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"Dal.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"Dal.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"Model.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"DBHelper.cs <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"Bll","children":[{"title":"Class1.cs <span style='color:#111;'> 155B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"UploadAndDownloadBll.cs <span style='color:#111;'> 386B </span>","children":null,"spread":false},{"title":"Bll.csproj <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"TempPE","children":null,"spread":false},{"title":"Bll.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"Bll.csproj.FileListAbsolute.txt <span style='color:#111;'> 721B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.69KB </span>","children":null,"spread":false},{"title":"Bll.csprojResolveAssemblyReference.cache <span style='color:#111;'> 8.27KB </span>","children":null,"spread":false},{"title":"Bll.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"Model.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"Dal.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"Bll.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"Dal.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"Bll.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"Model.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"UploadAndDownloadDemo.suo <span style='color:#111;'> 46.00KB </span>","children":null,"spread":false},{"title":"Model","children":[{"title":"Class1.cs <span style='color:#111;'> 157B </span>","children":null,"spread":false},{"title":"UploadAndDownload.cs <span style='color:#111;'> 878B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"Model.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.53KB </span>","children":null,"spread":false},{"title":"Model.csproj.FileListAbsolute.txt <span style='color:#111;'> 320B </span>","children":null,"spread":false},{"title":"Model.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Model.csproj <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"Model.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"Model.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • 前行的微光 :
    不是把文件上传到服务器端。几乎没有参考价值,还那么贵。大家要三思
    2019-12-18
  • gavin_1010 :
    还可以能解决问题
    2019-08-20
  • herr123456 :
    只是本地拷贝 没用。
    2019-04-30
  • gaoling386 :
    感谢分享,
    2018-08-27
  • qinuo_2010 :
    没下载成功就要来评论
    2018-03-09

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明