How can I pass file contents when either deploying or running action?

I have worked on a charm which now needs to take some file contents and place them in a VM container… but I am not seeing any good or documented way to

  1. set up the juju action / config to take in binary data …
  2. how to pass that data in properly so that… my juju action can take it, instantiate the file locally within the VM … and do whatever else is needed (set file permissions, etc)

previously I just set a string and pushed it in that way… but for larger files this is starting to not really work… anyone aware of the proper way to pass in whole binary files ?

bump,

I recall seeing this in a demo or publication somewhere… loading the contents of a file somehow but… cannot find it