Skip to content

Instantly share code, notes, and snippets.

@anselmobattisti
Created November 22, 2023 18:30
Show Gist options
  • Save anselmobattisti/060ba90d0853c71b141c1c19c58794f8 to your computer and use it in GitHub Desktop.
Save anselmobattisti/060ba90d0853c71b141c1c19c58794f8 to your computer and use it in GitHub Desktop.
Send image api curl base64
# --wrap=0 will convert the base64 texto into only one line
curl -X POST -H "Content-Type: application/json" -d '{"image" : "'"$( base64 --wrap=0 ./imgs/knative.png)"'"}' http://127.0.0.1:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment