Created
November 22, 2023 18:30
-
-
Save anselmobattisti/060ba90d0853c71b141c1c19c58794f8 to your computer and use it in GitHub Desktop.
Send image api curl base64
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
# --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