A problem with GzipFile (BUG?)

P

Paulo da Silva

Hi.

I am writing to a file mixing "Normal" with gziped Data.
For that I am using GzipFile. For ex. 1st I write some data (A),
then I open a GzipFile and write let's say N (uncompressed) bytes (B).
Then I close GzipFile, write some more data (C) and close the file.
Unfortunately, when reading the the N compressed bytes (B) and
closing GzipFile, I didn't *always* get correctly positioned at
the beginning of (C)! Is this a bug? Is there a way to exhaust
all the bytes written to GzipFile so that the file pointer *always*
point to beginning of (C)?

Most of times this works fine, but not always!

Thanks for any help.
 

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
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top