TarFile using binary strings

Marc Poinot (Onera) marc.poinot at dlr.de
Tue Aug 12 07:12:07 EDT 2003


Hi all,

I have a DBMS with Blobs, I want to export them into a tar.gz file using
the TarFile module.
So far, I'm using a temporary file for the tar file creation, each blob
is exported into a
file and then added to the tar file.

Is it possible to avoid the temporary files, and read the stream from
the binary string coming
from DBMS ? The TarInfo object uses a fileobj Python type, is there any
trick (or module) to
make TarInfo happy with a 'possible' fileobj-like on a memory zone ?

marcvs [alias Hmmm... but you have 2Gb memory and 800Gb disk, so ?]








More information about the Python-list mailing list