实例介绍
用webservice作为服务器端,以流的方式实现文件的上传和下载,可以自动调用winrar进行压缩和加密,支持多线程和断点续传功能,默认是16K一个包,全部源码,已经在实际项目中应用。客户端有winform和服务两种方式的实现。都进行了良好的重构,可以方便地嵌入到其它系统内。阿弥陀佛。
【实例截图】
【核心代码】
4744300845173753361.rar
├── 客户端
│ ├── Sync.Business
│ │ ├── bin
│ │ │ ├── Debug
│ │ │ └── Release
│ │ ├── FileService.cs
│ │ ├── obj
│ │ │ └── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── Sync.Business.csproj.FileListAbsolute.txt
│ │ │ └── TempPE
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SyncBusiness.cs
│ │ ├── Sync.Business.csproj
│ │ └── SyncConfig.cs
│ ├── Sync.Common
│ │ ├── bin
│ │ │ ├── Debug
│ │ │ └── Release
│ │ ├── Business
│ │ │ ├── Business.cs
│ │ │ └── FileService.cs
│ │ ├── obj
│ │ │ └── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── Sync.Common.csproj.FileListAbsolute.txt
│ │ │ └── TempPE
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Sync.Common.csproj
│ │ └── Utils
│ │ ├── FileCompress.cs
│ │ ├── IniFiles.cs
│ │ ├── Utils.cs
│ │ └── XMLFiles.cs
│ ├── Sync.FileTrans
│ │ ├── bin
│ │ │ ├── Debug
│ │ │ │ ├── Config
│ │ │ │ │ ├── MailTransfer_Detail.xml
│ │ │ │ │ └── MailTransfer.xml
│ │ │ │ ├── fileLog.ini
│ │ │ │ ├── Sync.FileTrans.vshost.exe
│ │ │ │ └── Sync.FileTrans.vshost.exe.manifest
│ │ │ └── Release
│ │ ├── FileTrans.cs
│ │ ├── FileTrans.Designer.cs
│ │ ├── FileTrans.resx
│ │ ├── obj
│ │ │ └── x86
│ │ │ └── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── Sync.FileTrans.csproj.FileListAbsolute.txt
│ │ │ └── TempPE
│ │ │ ├── Service References.LandSeaService.Reference.cs.dll
│ │ │ └── Web References.LandSeaService.Reference.cs.dll
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ ├── Resources.resx
│ │ │ ├── Settings.Designer.cs
│ │ │ └── Settings.settings
│ │ ├── Sync.FileTrans.csproj
│ │ ├── sys.ico
│ │ ├── TestTrans.cs
│ │ ├── TestTrans.Designer.cs
│ │ └── TestTrans.resx
│ ├── Sync.FileTransService
│ │ ├── app.config
│ │ ├── bin
│ │ │ ├── Debug
│ │ │ │ ├── Config
│ │ │ │ │ ├── MailTransfer_Detail.xml
│ │ │ │ │ └── MailTransfer.xml
│ │ │ │ ├── fileLog.ini
│ │ │ │ ├── InstallUtil.InstallLog
│ │ │ │ ├── Sync.FileTransService.InstallLog
│ │ │ │ ├── Sync.FileTransService.InstallState
│ │ │ │ ├── Sync.FileTransService.vshost.exe
│ │ │ │ └── Sync.FileTransService.vshost.exe.manifest
│ │ │ └── Release
│ │ ├── FileService.cs
│ │ ├── FileService.Designer.cs
│ │ ├── obj
│ │ │ └── x86
│ │ │ └── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── Sync.FileTransService.csproj.FileListAbsolute.txt
│ │ │ └── TempPE
│ │ ├── Program.cs
│ │ ├── ProjectInstaller.cs
│ │ ├── ProjectInstaller.Designer.cs
│ │ ├── ProjectInstaller.resx
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── readme.txt
│ │ ├── ServiceConfig.htm
│ │ └── Sync.FileTransService.csproj
│ ├── Sync.FileTrans.sln
│ ├── Sync.FileTrans.suo
│ ├── Sync.IConfig
│ │ ├── bin
│ │ │ ├── Debug
│ │ │ └── Release
│ │ ├── ISyncConfig.cs
│ │ ├── obj
│ │ │ └── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── Sync.IConfig.csproj.FileListAbsolute.txt
│ │ │ └── TempPE
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── Sync.IConfig.csproj
│ ├── Sync.Object
│ │ ├── bin
│ │ │ ├── Debug
│ │ │ └── Release
│ │ ├── ConfigModel.cs
│ │ ├── FileModel.cs
│ │ ├── LogInfo.cs
│ │ ├── obj
│ │ │ └── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── Sync.Object.csproj.FileListAbsolute.txt
│ │ │ └── TempPE
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── ProxyModel.cs
│ │ └── Sync.Object.csproj
│ ├── Sync.Service
│ │ ├── app.config
│ │ ├── AppConfigProxy.cs
│ │ ├── bin
│ │ │ ├── Debug
│ │ │ └── Release
│ │ ├── obj
│ │ │ └── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── Sync.Service.csproj.FileListAbsolute.txt
│ │ │ └── TempPE
│ │ │ └── Web References.LandSeaService.Reference.cs.dll
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Settings.Designer.cs
│ │ │ └── Settings.settings
│ │ ├── Sync.Service.csproj
│ │ └── Web References
│ │ └── LandSeaService
│ │ ├── dFileInfo.datasource
│ │ ├── Reference.cs
│ │ ├── Reference.map
│ │ ├── SyncWebService.disco
│ │ └── SyncWebService.wsdl
│ └── Sync.Setup
│ ├── Debug
│ │ ├── setup.exe
│ │ └── Sync.Setup.msi
│ ├── Release
│ ├── Sync.Setup.vdproj
│ └── Sync.Setup.vdproj.vs10x
└── 服务端
├── Sync.Common
│ ├── bin
│ │ ├── Debug
│ │ └── Release
│ ├── DbAccess.cs
│ ├── DbAccessOleDb.cs
│ ├── DbAccessSqlServer.cs
│ ├── FileInfo.cs
│ ├── FileOperation.cs
│ ├── Identify.cs
│ ├── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── Sync.Common.csproj.FileListAbsolute.txt
│ │ └── TempPE
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Sync.Common.csproj
│ └── ThreadWriteFile.cs
├── Sync.WebService
│ ├── App_Data
│ │ └── LandSeaWebService.mdb
│ ├── bin
│ ├── Global.asax
│ ├── Global.asax.cs
│ ├── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── Sync.WebService.csproj.FileListAbsolute.txt
│ │ └── TempPE
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── readme.txt
│ ├── SyncWebService.asmx
│ ├── SyncWebService.asmx.cs
│ ├── Sync.WebService.csproj
│ ├── Sync.WebService.csproj.user
│ ├── upload
│ │ └── 塘沽
│ │ ├── Hysy563
│ │ │ ├── 0
│ │ │ └── 1
│ │ └── Hysy603
│ │ └── 0
│ ├── Web.config
│ ├── Web.Debug.config
│ └── Web.Release.config
├── Sync.WebService.sln
└── Sync.WebService.suo
91 directories, 123 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论