Skip to content

Instantly share code, notes, and snippets.

@raj-arun
Created April 30, 2019 02:19
Show Gist options
  • Save raj-arun/b1f8b9801130f4bd3a88bc8f2f13a7af to your computer and use it in GitHub Desktop.
Save raj-arun/b1f8b9801130f4bd3a88bc8f2f13a7af to your computer and use it in GitHub Desktop.
Decode the base64 file
[xml]$hcmdata = Get-Content output.xml
$sEncodedString = $hcmdata.Envelope.Body.runReportResponse.runReportReturn.reportBytes
$sDecodedString=[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($sEncodedString))
$sDecodedString | Out-File Positions.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment