neoark
Chevereto Member
Website URL
<private>
Chevereto version
3.10.10
Description of the issue
I am trying to post an image with python using base64 and I am running into an issue.
with open( imagePath, "rb" ) as image_file:
encoded_string = base64.b64encode(image_file.read())
response1 = requests.post("https://test.test/testapi/1/upload/...RyeK2otfmCXn9a7ZUcGfEYrBU&format=json&source=", data=encoded_string, headers={ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) App$
response = response1.content
It keeps giving me an invalid Base64 error. Any clue what's going on?
<private>
Chevereto version
3.10.10
Description of the issue
I am trying to post an image with python using base64 and I am running into an issue.
with open( imagePath, "rb" ) as image_file:
encoded_string = base64.b64encode(image_file.read())
response1 = requests.post("https://test.test/testapi/1/upload/...RyeK2otfmCXn9a7ZUcGfEYrBU&format=json&source=", data=encoded_string, headers={ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) App$
response = response1.content
It keeps giving me an invalid Base64 error. Any clue what's going on?