Say I wanted to copy file based records.
Anyone got any advice for doing this in code studio as nothing seems obvious here ?
I need to copy a bunch of file objects and relate them to a new record - properties / attributes and the actual file content.
For the purposes of this topic I am not able to use rules to do this.
Thanks
Copying objects and doing all the relationship stuff is not a problem - its just dealing with the file objects themselves
ok ive found read_file() and write_file() so il have a play 
Those should work for simple text files, but may not cater for binary, or large sizes either.
Experiment with reading and writing in base64 mode (both functions have options to do that), which might alleviate some of the issues. But file size may still be an issue depending on the size of files you are dealing with.
yes I figured I might need to do that.
Thanks
Yet oddly that corrupted all the file contents … so wont be using it for the moment !!!
Will investigate it more when time permits. It seems to be fine with all the types I have thrown at it for the moment but not tried any "huge "files yet.
I was going to say there is an undocumented way to handle large files in code studio, but it’s actually documented now
If you are handling large files, best to set use_blobs in the config.json.
https://docs.netcall.com/docs/liberty-create/2024.2/code-studio/code-overview#File%20Handling
good shout - using this option seems significantly more performant too !!!