Skip to content

Instantly share code, notes, and snippets.

$fileInPath = 'costura.compressed.dll.zip'
$fileOutPath = 'costura.decompressed.dll'
$bytes = [system.io.file]::ReadAllBytes($fileInPath)
$input = New-Object System.IO.MemoryStream( ,$bytes)
"Input stream length: '$($input.Length)'"
$output = New-Object System.IO.MemoryStream
$deflateStream = New-Object System.IO.Compression.DeflateStream $input, ([System.IO.Compression.CompressionMode]::Decompress)