How to download memory stream object via angularJS and webaAPI2

感情迁移 提交于 2019-12-02 03:53:20
jvrdelafuente

I had a similar problem. I solved that changing the endpoint to support GET and calling this method from a new tab.

So from your angular app you have to create a new tab pointing to the path that calls the method that generate your document. You can open a tab with the next code:

$window.open(path)

I think that in the next link you can have all the information that you need:

Download file from an ASP.NET Web API method using AngularJS

I hope that it helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!