Written by

Question Matjaz Murko · Jan 29, 2024

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

Comments

Steven Hobbs · Jan 30, 2024

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.

0
Matjaz Murko  Feb 1, 2024 to Steven Hobbs

I'm trying to pass JSON serialized parameter to native .NET API method ClassMethodIRISList, but Stream type is not possible.

0
Qitong Yang · Jan 30, 2024

Perhaps you can try %Stream, which can solve MAXSTRING very well problem

0