Created
April 1, 2019 07:15
-
-
Save rikwatson/2d47a6ea79a269edc677702135f9447d to your computer and use it in GitHub Desktop.
Base64 decoding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 2.0 | |
# | |
# Convert `01.pdf.base64` to `01.pdf` | |
# | |
$file = "C:\Users\richard.watson\Desktop\01.pdf.base64" | |
$data = Get-Content $file | |
[System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($data)) | Out-File "C:\Users\richard.watson\Desktop\01.pdf" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment