How to download a file with Play Framework 2.0

前端 未结 3 1525
情深已故
情深已故 2021-02-02 13:59

I\'m using Play Framework 2.0.3 to create an application which delivers Excel files that should be downloadable by the user.

 response().setContentType(\"applic         


        
3条回答
  •  执念已碎
    2021-02-02 14:16

    Serving files If it’s not a problem to load the whole content into memory for simple content what about a large data set? Let’s say we want to send back a large file to the web client.

    read more at : http://www.playframework.com/documentation/2.0.x/JavaStream

提交回复
热议问题