def filedialogs(self): global get_img get_img = filedialog.askopenfilename(filetypes=(("png","*.png"),("jpg","*.jpg"),("Allfile","*.*")))
def convert_image_into_binary(self): with open(get_img, 'rb') as file: self.photo_image=file.read() return photo_image
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)