You can try embedding IronPython and unzip from there, and then make the unclosed object available to the C # application.
Note that pickles are designed to serialize Python objects, so this approach only works if you have very simple objects with clear mappings to C # equivalents. It also requires that your IronPython environment has access to all modules that define the classes of all objects contained in pickle (same as CPython).
If possible, try serializing your data in another different way (such as JSON or XML).
source share