def file_to_base64(file_path: str) -> str: with open(file_path, "rb") as binnary_file: encoded_string = base64.b64encode(binnary_file.read()) return encoded_string.decode('utf-8')
def file_to_base64(file_path: str) -> str: with open(file_path, "rb") as binnary_file: encoded_string = base64.b64encode(binnary_file.read()) return encoded_string.decode('utf-8')
if os.name == 'nt': locale.setlocale(locale.LC_ALL, 'Turkish_Turkey.1254') yeni windows updateleri ile artık Türkiye (‘Turkish_Türkiye’, ‘1254’)