enhancement
New TL-Script modules for handling binary data and downloads.
Creating binary data:
binary(name: "hello.txt", data: "Hello World!")
Creating 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, that value is made available for download.
Test
- You can try out the expressions above in the Expert Search.
- /com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/tlscript/TestBinaryData.script.xml