Unzip file from binary value in Python
Advertisements I have a binary value beginning with ‘504B030414…’ which should be a zipped XML file. Using Python, how can I unzip/read this file? Using below, I get "zipfile.BadZipFile: File is not a zip file" (binary value purposely truncated): import zipfile import io # original_zip_data = b"504B030414…" # filebytes = io.BytesIO(original_zip_data) original_zip_data = "504B030414…" filebytes… Read More Unzip file from binary value in Python