IPWorks ZIP 2020 Python Edition

Questions / Feedback?

bzip_2_data Property

(Decompression only) The bzip2 file contents as a byte array.

Syntax

def set_bzip_2_data(value: bytes) -> None: ...

bzip_2_data = property(None, set_bzip_2_data)

Default Value

""

Remarks

Normally you should set archive_file before invoking scan or extract. If you prefer to read the bzip2 file from memory you may set bzip_2_data instead. bzip_2_data should be set to the entire contents of the bzip2 file; this will allow you to read from the bzip2 without writing any temporary files to disk.

If you would like to extract data from the archive without ever writing to disk you should also set WriteToProgressEvent to true, and after invoking scan, you should set the value of file_decompressed_name to an empty string. Then, when you invoke extract (or extract_all) the data will be provided in the on_progress event.

This property is write-only. Note that modifying a bzip2 file stored in bzip_2_data is not supported, so append will throw exceptions.

This property is write-only.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks ZIP 2020 Python Edition - Version 20.0 [Build 8300]