服务端接收文件流代码: public async Task<HttpResponseMessage> ReceiveFileByStream() { var stream = HttpContext.Current.Request.InputStream; ) { var absolutePath = HttpContext.Current.Request.MapPath("/img/"); if (!Directory.Exists(absolutePath)) { Di
downLoadFile (url, name) { this.xhr = new XMLHttpRequest() this.xhr.open('GET', url, true) this.xhr.responseType = 'blob' var vmThis = this this.xhr.onload = () => { ) { ) { let file = this.xhr.response let fileName = name if ('msSaveOrOpenBlob' in n