test b64 image length

This commit is contained in:
Bryan Gerlach
2024-10-02 14:02:00 -05:00
parent d2dedd4a77
commit 9f772ff550

View File

@@ -262,7 +262,9 @@ def resize_and_encode_icon(imagefile):
resized_imagefile = ContentFile(resized_image_buffer.read(), name=imagefile.name)
# 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
def startgh(request):