Interesting! I didn't see which version of InterSystems IRIS you are using but you might try a couple of things:
First, don't return a status value from your method. Instead return a %Stream.GlobalBinary instance. If you still want a status, get it some other way. I recommend just throwing an exception - IRIS Native should handle that okay. The object value you get back will be a proxy object that should allow you to read the stream. In our documentation you might search for "reverse proxy objects".
If get some time, I will try to build a sample of doing this.
- Log in to post comments