test b64 image length
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user