.net core下载文件
[HttpGet("get-stream-file/{id}")] public async Task<IActionResult> Download(string id) { Stream stream=await { { _get_stream_by_file-id} }; if (stream == null) return NotFound(); return File(stream, "application/octet-stream"); }
记录编程的点滴,体会学习的乐趣