TarFile using binary strings

  • Thread starter Marc Poinot (Onera)
  • Start date
M

Marc Poinot (Onera)

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 ?]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top