A few readers of my previous post on File Transfer with WCF
have asked to share the implementation of the UploadFile and DownloadFile methods.
While I can't share the complete implemention of the service for obvious Intellectual Property reasons,
I will outline the basic steps involved in implementing the service.
Please refer to my previous post for
the details on the DataContracts and OperationContracts involved here.
NOTE: I have extracted these portions from the actual code.
I cannot verify this to work as-is, but it should give you a head-start to
complete your own service. You should also add your own error checking, and any pre or
post-download and/or pre or post-upload processing as required by the business.