test b64 image length
This commit is contained in:
@@ -262,7 +262,9 @@ def resize_and_encode_icon(imagefile):
|
|||||||
resized_imagefile = ContentFile(resized_image_buffer.read(), name=imagefile.name)
|
resized_imagefile = ContentFile(resized_image_buffer.read(), name=imagefile.name)
|
||||||
|
|
||||||
# Return the Base64 encoded representation of the resized image
|
# Return the Base64 encoded representation of the resized image
|
||||||
return base64.b64encode(resized_imagefile.read())
|
resized64 = base64.b64encode(resized_imagefile.read())
|
||||||
|
print(len(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
|
||||||
def startgh(request):
|
def startgh(request):
|
||||||
|
|||||||
Reference in New Issue
Block a user