阅读背景:

如何删除作为HttpResponseMessage的StreamContent发送的文件

来源:互联网 

In ASP.NET webapi, I send a temporary file to client. I open a stream to read the file and use the StreamContent on the HttpResponseMessage. Once the client receives the file, I want to delete this temporary file (without any other call from the client) Once the client recieves the file, the Dispose method of HttpResponseMessage is called & the stream is also disposed. Now, I want to delete the temporary file as well, at this point. In ASP.NET webapi, I send a temporary file to c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: