I like to understand how you can set Ens.StreamConainer to a string value. I just see a class for setting the OriginalFilename but nothing for setting the body.
s pRequest = ##class(Ens.StreamContainer).%New()
s pRequest.OriginalFilename = "Test"
d pRequest.Stream.Read(hl7) //Error Out
d pRequest.StreamSet(hl7) //Getting empty string
If
hl7
is a stream:It
hl7
is a string:Some code advice:
Read
reads from stream, andWrite
writes to stream.It is a setter method for
Stream
property. There's no need to call it directly, just set the property.