test b64 image length

This commit is contained in:
Bryan Gerlach
2024-10-02 14:06:25 -05:00
parent dc47f8492d
commit 8dcdbb2304

View File

@@ -171,7 +171,7 @@ def generator_view(request):
"filename":filename "filename":filename
} }
} }
#print(data) print(data)
headers = { headers = {
'Accept': 'application/vnd.github+json', 'Accept': 'application/vnd.github+json',
'Content-Type': 'application/json', 'Content-Type': 'application/json',
@@ -263,7 +263,7 @@ def resize_and_encode_icon(imagefile):
# Return the Base64 encoded representation of the resized image # Return the Base64 encoded representation of the resized image
resized64 = base64.b64encode(resized_imagefile.read()) resized64 = base64.b64encode(resized_imagefile.read())
print(resized64) #print(resized64)
return resized64 return resized64
#the following is used when accessed from an external source, like the rustdesk api server #the following is used when accessed from an external source, like the rustdesk api server