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
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.
I'm trying to pass JSON serialized parameter to native .NET API method ClassMethodIRISList, but Stream type is not possible.
Perhaps you can try %Stream, which can solve MAXSTRING very well problem