Consider the simplest possible CSP file upload/download page - you upload a file, it's saved in the database, and the file is immediately re-download via %CSP.StreamServer:
ClassExtends%Persistent<<formmethod<This works fine for most file types, but for HTML files (at least - maybe other types too), it doesn't work - both on IRIS 2021.2 and on an earlier version I'm running too. The resulting downloaded file has a BOM at the beginning and a NUL every other character.
Has anybody else fought with this before?


.png)
.png)




