COM interface and large string/stream data.
Author: i.sharp@pcisystems.co.uk (Iain Sharp)
I have a com interface dll, within this I have some data (a pdf file) held in System.IO.Stream format, I can convert this to a string using Streamreader.readtoend(); I have declared this string as a parameter to the function, (ref string outputdata) In uniface have declared the parameter Outputdata mapped to outputdata, type string, implementation VT_BSTR, this only seems to return approx 1000 bytes. Leading to an invalid pdf file. If I change the type to raw, implementation V_ARRAY I get lots more data, but it seems to have {! scattered across it. Leading to an invalid pdf file. Anyone know how to sensibly return large raw data strings from c# to uniface? regards, Iain