Jun-12-2020, 05:12 PM
(Jun-12-2020, 05:05 PM)hobbyist Wrote: Any idea?It seems
pickle.load()
is for use when unpickling. If you are trying to pickle an image, you want to use pickle.dumps()
which returns a pickled object.If you want to save the pickled object to a file, you could use
pickle.dump(f, open("myfile.data", "wb"))