major
nice-to-have
defect
major
enhancement
The interface for a download is currently com.top_logic.layout.WindowScope.deliverContent(BinaryData, boolean). This is awkward because `BinaryData` must provide the `InputStream getStream() ` method. For this, the download data must generally already be available and cannot (easily) be generated dynamically during the download.
Improvement
Generalize to ` BinaryDataSource ` with an interface `void deliverTo(OutputStream out)`. This aligns better with the target interface ` request.getOutputStream() ` and allows for the dynamic generation of download data.
Test
Refactoring; no additional test.