How To Download a File From The Server Using PeopleCode
PeopleCode, FilesThere’s no obvious way to download a file object that is in your code. The PTFP_FEED:UTILITY:Utility
class has a very handy function for doing exactly this, viewStringAsAttachment.