Pickle a file object

Michael Hudson mwh at python.net
Tue Dec 3 06:04:40 EST 2002


"Guyon Morée" <gumuz at looze.net> writes:

> and lets'say i'd want to embed binary files, images (eg. jpg) into my file?
> not storing a link to a location on the harddrive.
> 
> can i read and store the contents of binary files?

Sure!  Pickle wasn't designed with large blobs of binary data in mind,
but it should work.

Cheers,
M.

-- 
  I have long since given up dealing with people who hold idiotic
  opinions as if they had arrived at them through thinking about
  them.                                 -- Erik Naggum, comp.lang.lisp



More information about the Python-list mailing list