Kicking and screaming we are now entering BC! Therefor I am facing a big upgradeproject which includes going from TempBlob Record to "Temp Blob" Codeunit. Therefor I am looking for some information on how to best use/transfer the old pieces of code into the new one?
For intance I have a lot of places where various files have been stored. And when we want to see the file we use:
CALCFIELDS("File as BLOB");
if not "File as BLOB".HASVALUE then ERROR(Text003);
BLOBRef.Blob := "File as BLOB";
FileMgt.BLOBExport(BLOBRef, FileName, true);
BLOBRef is the old record which I can easily change to the new codeunit. But what is the best way of getting the blob field into the codeunit?
Doing outstreams, instreams and copystreams seem like unneccesary/ugly lines of codes. So not knowing enough about streams, I am wondering if there might be a better way.