Question
· Jan 29

Native SDK for .NET - MAXSTRING

Hi.

How can I pass a large string to classmethod params (e.g. large pictures) without getting MAXSTRING error?

Regards,
Matjaž

Product version: IRIS 2023.2
$ZV: IRIS for Windows (x86-64) 2023.2 (Build 227U) Mon Jul 31 2023 17:45:52 EDT
Discussion (3)3
Log in or sign up to continue

If your method can handle %Stream data then you can copy the large string piece-by-piece into an appropriate %Stream.  If your method cannot handle %Stream data then you must modify it to test for a parameter that is a %Stream object instead of a string and then process that data by calling the stream.Read() method to scan through the %Stream.

A few built-in methods do have this capability.  For example, the %FromJSON(arg) method in the %DynamicAbstractObject class will accept 'arg' being either a string or a %Stream object.