Skip to content

Commit b359017

Browse files
committed
2 parents 2958f4d + d07f763 commit b359017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/v13/image_media.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def get_image_media(
9191
def get_bmp_base64_string(image_file_name):
9292
image = open(image_file_name, 'rb')
9393
image_bytes = image.read()
94-
base64_string = base64.encodestring(image_bytes)
94+
base64_string = base64.b64encode(image_bytes)
9595
return base64_string
9696

9797
# Main execution

0 commit comments

Comments
 (0)