Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
compressing a file
#5
(Jun-02-2021, 08:53 PM)jefsummers Wrote: So you want to read an uncompressed source file and compress it, but did not want the compression to be done in memory? Where did you want the compression to occur?

I interpreted the question as wanting to compress it, but read the data as a stream so the entire file is not in memory at one time. The docs suggested to me that compressing a single object is simple, but if you wanted a stream compressor, that's not explicitly shown.

I would assume there's some way to chain the blockIO devices so you could read() the compression results (rather than direct it to a file on disk), but wasn't sure how to accomplish that.
Reply


Messages In This Thread
compressing a file - by Skaperen - Jun-01-2021, 02:53 AM
RE: compressing a file - by BashBedlam - Jun-02-2021, 01:05 AM
RE: compressing a file - by Skaperen - Jun-02-2021, 05:36 PM
RE: compressing a file - by jefsummers - Jun-02-2021, 08:53 PM
RE: compressing a file - by bowlofred - Jun-02-2021, 10:16 PM
RE: compressing a file - by Skaperen - Jun-05-2021, 11:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question [solved] compressing files with python. SpongeB0B 1 1,295 May-26-2023, 03:33 PM
Last Post: SpongeB0B

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020