InputStream Properties -- e.g. pyAttachInputStream
Has anyone else had difficulties with InputStream Properties?
Attached is an extract from a Function that I created to extract a byte-array from a file attachment, with the primary context being a Data-WorkAttach-File page.
In the first version I found that when I read from the InputStream object, subsequently the attachment became an empty file. The solution was to create a 'copy' of the PRInputStream object -- see the attached code.
I would be interested in knowing if there is any other way. I tried using mark() and reset() but this didn't work.