Everything is with firebird 3 and the latest version of FirebirdClient.dll (5.1.1)
The multiturnos.xml file contains an example of serialized object and it is only the effects you see that's what we're keeping (basically a string of about 32KB). This object contains the reference to the file list (the definition of the location and then
go for them and get the bytes and so to download). This according to the logic of the system in question.
However, when the object to serialize is small (the information of 3 or 4 files for example) everything works fine. but when it grows you get the error:
"Arithmetic exception, numeric overflow, or string truncation \ r \ nSTRING right truncation"