ImportName := FileManagement.BLOBImport(TempBlob, DefaultName); //if you do TempBlob.CALCFIELDS(BLOB) here the BLOB field on TempBlob will be cleared //as the BLOBImport does not store the record in with imported content in the passed TempBlob Mytable.blob := TempBlob.BLOB; Mytable.MODIFY; //or Mytable.INSERT
Answers
Do you have a code example?
CALCFIELDS "clears" a BLOB field when there is noting in there in the first place.
Make sure you used MODIFY after you assigned the value to the BLOB field in your table. Just like this (error handling ommitted):
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03