Hi all,
I need to use SQLDataReader to get a blob field from an external Database and put it in the Business Central Database.
I did something like that, but the file comes corrupted.
SystemInt64 := SQLDataReader.GetBytes(sqlPOS, SystemInt64, Bytes, 0, 0);
TempBlob.CreateOutStream(OutStr);
OutStr.Write(SystemInt64.Int64());
TempBlob.ToRecordRef(rref, fref.Number);
Can you help me please?
Thanks!