[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"); }
.net core下载文件
记录编程的点滴,体会学习的乐趣