Last active
October 12, 2019 20:07
-
-
Save MauRiEEZZZ/207ba397df40ea9a1c57eb4a01c7e12f to your computer and use it in GitHub Desktop.
Read the file into memory
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
$fileAsByteArray = [System.IO.File]::ReadAllBytes($FilePath); | |
$Base64String = [System.Convert]::ToBase64String($fileAsByteArray); | |
$Base64String | Out-File '.\a file' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment