%CSP.REST - accessing raw stream
Hi, How can I get an instance of stream which is a successor of %Stream.Object in a method that handles a REST POST request?
#dim request as %CSP.Request = %request
set content = request.Content
This returns a variable of type %CSP.Stream which is totally useless, because %CSP.Stream does not inherit from %Stream.Object
Product version: IRIS 2023.1
Discussion (2)1
Comments
you are not quite correct:
abstract class %CSP.Stream is a base class for
- class %CSP.CharacterStream extends %GlobalCharacterStream, %CSP.Stream
- class %CSP.BinaryStream extends %GlobalBinaryStream, %CSP.Stream
you decide which one to use
Where is the problem ?
Thanks a lot Robert. I completely forgot about multiple inheritance 😶