Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyuwen2 committed Jan 13, 2022
2 parents 2958f4d + d07f763 commit b359017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/v13/image_media.py
Expand Up @@ -91,7 +91,7 @@ def get_image_media(
def get_bmp_base64_string(image_file_name):
image = open(image_file_name, 'rb')
image_bytes = image.read()
base64_string = base64.encodestring(image_bytes)
base64_string = base64.b64encode(image_bytes)
return base64_string

# Main execution
Expand Down

0 comments on commit b359017

Please sign in to comment.