Encode Files
base64File(text filePath)
This is a built-in action that will at compile time load the file at filePath
and encode it to base 64. This will result in a Text action containing the base 64 encoded contents of the file which Shortcuts can decode for showing an image, playing audio , etc.
For example, you could enter a file path for an audio file and use Play Audio to play the audio when the Shortcut runs.
@audio = base64File("music/playme.mp3")
playSound(audio)