go to post John Flippance · Sep 30, 2022 Hello, Have solved this, the third party API accepted the stream as a string, therefore I went through and changed the generated classes accordingly, and then fed in the stream.
go to post John Flippance · Jun 2, 2017 Thanks Rubens/Sean/Dmitry, I decided to switch to the long strings route as the documents are small. I couldn't get this working either but it was because I wasn't reading the stream in a number divisible by 3 (I was just doing a .ReadLine() ). Have performed a Read(12000) and it now works a treat! PDF opening up in the supplier's system. do context.streamPDF.Rewind() while 'context.streamPDF.AtEnd { set line=context.streamPDF.Read(12000) set context.strDocument =context.strDocument_line } set context.strDocumentEncoded = $system.Encryption.Base64Encode(context.strDocument)