Skip to content

Instantly share code, notes, and snippets.

@nickpeihl
Created August 9, 2019 15:40
Show Gist options
  • Save nickpeihl/92d29f8d0cfa0f0cd6c9df0025161a88 to your computer and use it in GitHub Desktop.
Save nickpeihl/92d29f8d0cfa0f0cd6c9df0025161a88 to your computer and use it in GitHub Desktop.
Convert file to base64 and store in JSON object
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