PowerShell
PowerShell
Decode Base64 to Zip File
See more Base64 Examples
Shows how to decode a baes64 string that is the encoded representation of the bytes that make up a .zip archive. Decodes the base64 and writes the .zip file.Chilkat PowerShell Downloads
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"
$success = $false
$b64 = "UEsDBBQA ... AAALgQAAAAA"
$zipData = New-Object Chilkat.BinData
$success = $zipData.AppendEncoded($b64,"base64")
$success = $zipData.WriteFile("qa_output/out.zip")
if ($success -ne $true) {
$("failed to write Zip file.")
exit
}