Solved

ZipArchiver: Zipfile size requires ZIP64 extensions


Badge +1

Hi,

Using FME Server, I am writing a large amount of data to a gdb to then be zipped up, using the custom transformer ZipArchiver. It works until it reaches its 2GB limit and then fails with the following lines:

Ideas for a workaround for this would be gratefully received! Is there a quick fix? Would Gzip work better?

Kind regards

icon

Best answer by david_r 12 July 2018, 12:22

View original

4 replies

Userlevel 4

Edit the custom transformer and open the PythonCaller. Modify line 63 to set "allowZip64" to True. The line should look like this:

with zipfile.ZipFile(zpath, 'a', zipfile.ZIP_DEFLATED, allowZip64=True) as zipper:

Perhaps @takashi would consider making this the default for the next release? :-)

Userlevel 2
Badge +17

Edit the custom transformer and open the PythonCaller. Modify line 63 to set "allowZip64" to True. The line should look like this:

with zipfile.ZipFile(zpath, 'a', zipfile.ZIP_DEFLATED, allowZip64=True) as zipper:

Perhaps @takashi would consider making this the default for the next release? :-)

@david_r, thanks for your suggestion. Yes, setting True to the allowZip64 flag could resolve the issue.

Setting Python 3.4+ (or later) to the Python Compatibility parameter in the workspace could also be a solution, since the allowZip64 flag is set to True by default in Python 3.4+.

Userlevel 2
Badge +17

Edit the custom transformer and open the PythonCaller. Modify line 63 to set "allowZip64" to True. The line should look like this:

with zipfile.ZipFile(zpath, 'a', zipfile.ZIP_DEFLATED, allowZip64=True) as zipper:

Perhaps @takashi would consider making this the default for the next release? :-)

Updated the ZipArchiver in FME Hub to allow zip64 by default :-)

 

Badge +1

Edit the custom transformer and open the PythonCaller. Modify line 63 to set "allowZip64" to True. The line should look like this:

with zipfile.ZipFile(zpath, 'a', zipfile.ZIP_DEFLATED, allowZip64=True) as zipper:

Perhaps @takashi would consider making this the default for the next release? :-)

Thanks guys, this seems to have worked :)

 

Reply