Enhancement
New building blocks for TL-Script for handling binary data and downloads.
Construction of binary data:
binary(name: "hello.txt", data: "Hello World!")
Construction of ZIP archives:
zipArchive(name: "archive.zip", entries: [ binary(name: "dir/data.json", data: { "key1": $value1, "key2": $value2 }), binary(name: "project-report.pptx", data: $myProj.get(`...#document`)) ])
If a script in a custom command now returns a binary data value as result, it will be offered for download.
Test
- In the expert search the above expressions can be tried.
- /com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/tlscript/TestBinaryData.script.xml