(image_data: bytes)
| 29 | |
| 30 | @staticmethod |
| 31 | def _encode_image(image_data: bytes) -> str: |
| 32 | base64_str = base64.b64encode(image_data).decode() |
| 33 | return f"data:image;base64,{base64_str}" |
| 34 | |
| 35 | def convert(self) -> tuple[list[tuple[str, str, Any]], dict]: |
| 36 | datas = [] |
no outgoing calls