print(data.decode("utf-8")) encoded = data.decode("utf-8") with open("C:\\image\\decoded.jpg", "wb") as new_file: new_fil