简体   繁体   中英

How to work with file delivery to the client in asp.net mvc without downloading the files on the web server?

我想避免在将Azure存储Blob文件交付给客户端之前先在Web服务器上下载文件,asp.net mvc是否可以通过任何方式使浏览器理解它正在接收文件URL并以是否返回了文件,例如:FileResult?

I do not know if it is the proper way, but the following code served me:

    public RedirectResult Test()
    {
        ...

        return new RedirectResult(uri.ToString());
    }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM