Embedded PDF's - GetFieldStreamRaw & StoreFieldStreamRaw
When using GetFieldStreamRaw(), by passing in a variable instead of using an output for the Remainder, will this affect how it is stored into a segment in a cloned message? I know it would usually output the remaining fields of the segment but in order to conform to a supplier's spec, they'd require "^^PDF" rather than the rest of the segment. Because the segment becomes immutable, the code below seems to be the way to do it. This code is working, but I'm curious if by passing in a variable rather than referencing the Remainder output, it will somehow truncate the embedded PDF when I store it into the OBX segment using StoreFieldStreamRaw().
This first block of code is getting the embedded PDF and storing it into a stream but is passing in a variable of Remainder rather than referencing an output of the remaining fields.
The stream is then passed to another method as a stream object of %Stream.TmpCharacter which executes the block of code below. It is creating the OBX segment and storing the stream into OBX:5.1 whilst using my variable as the remainder.