开发者

Stream File to a Windows Service

开发者 https://www.devze.com 2023-01-14 04:59 出处:网络
I have a windows service that needs to send an attachment through email. This service does not have access to the file location. So, I need to write something that the windows service will call and ge

I have a windows service that needs to send an attachment through email. This service does not have access to the file location. So, I need to write something that the windows service will call and get the file stream from.

What is the best approach to acc开发者_C百科omplish this.

I have tried creating a webservice that will write the stream to the output stream of the request, but then i am having issues with calling the webservice.


Is .NET remoting an option? You can send a base64 string through a .net remoting message and then process it when it is received by the service.

0

精彩评论

暂无评论...
验证码 换一张
取 消