I have a script in Python to compress a large string:
import zlib def processFiles(): ... s = """Large string more than 2Gb""" data = zlib.compress(s) ...
When I run this script, I received an error message:
ERROR: Traceback (most recent call last):
Some information:
zlib. version = '1.0'
zlib.ZLIB_VERSION = '1.2.7'
# python -V Python 2.7.3
How to compress big data (over 2 GB) in Python?
source share