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
## Powershell method of transfering small (< 1 MB) binary files via Clipboard | |
## | |
## NB: Unwise to attempt to encode binary files exceeding 1 MB due to excessive memory consumption | |
## Powershell 5.0> | |
# On the transmission end: | |
$Content = Get-Content -Encoding Byte -Path binaryfile.xxx | |
[System.Convert]::ToBase64String($Content) | Set-Clipboard | |
# On the receiving end |