Error -3 while decompressing data: incorrect header check
Posted
by Rahul99
on Stack Overflow
See other posts from Stack Overflow
or by Rahul99
Published on 2010-03-18T14:07:13Z
Indexed on
2010/03/18
14:11 UTC
Read the original article
Hit count: 309
python
I have .zip file which contain csv data. I am reading .zip file using
<input type = "file" name = "select_file"/>
I want to decompress that .zip file and read csv data.
file_data = self.request.get('select_file')
file_str = zlib.decompress(file_data)
#file_data_list = file_str.split('\n')
#file_Reader = csv.reader(file_data_list,quoting=csv.QUOTE_NONE )
I am expecting csv data in file_str but I am getting error.
error :: Error -3 while decompressing data: incorrect header check
What I have to use?
© Stack Overflow or respective owner