Created
August 9, 2019 15:40
-
-
Save nickpeihl/92d29f8d0cfa0f0cd6c9df0025161a88 to your computer and use it in GitHub Desktop.
Convert file to base64 and store in JSON object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jq -Rs @base64 MYFILENAME | jq "{ data: . }" > myobject.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment