(image)
| 100 | |
| 101 | |
| 102 | def image_to_base64(image): |
| 103 | with open(image, "rb") as fin: |
| 104 | encoded_string = base64.b64encode(fin.read()).decode("utf-8") |
| 105 | return encoded_string |
| 106 | |
| 107 | |
| 108 | # Please replace the question template as QUESTION_TEMPLATES: |
no test coverage detected