Dynamically-created content for download without writing a file on server-side in Vaadin Flow web app

后端 未结 2 2029
暖寄归人
暖寄归人 2021-01-15 03:50

In my Vaadin Flow web app (version 14 or later), I want to present to my user a link to download a data file.

The contents of this download may be quite large. So I

2条回答
  •  暖寄归人
    2021-01-15 04:09

    Viritin

    The Vaadin API is somewhat counterintuitive for downloading dynamically served files. I suggest to use add-on like Flow Viritan to solve the issue. Check my year old blog entry.

    I modified the DynamicFileDownloader in flow-viritin a bit. Now (since 0.3.5) you can override the file name dynamically. See change in GitHub.

提交回复
热议问题