Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # bin to text
- $bytes = [System.IO.File]::ReadAllBytes('C:\temp\file.zip')
- $txt = [System.Convert]::ToBase64String($bytes)
- [System.IO.File]::WriteAllText('C:\temp\zip.txt', $txt)
- # text to bin
- $tt = [System.IO.File]::ReadAllText('C:\temp\zip.txt')
- $bb = [System.Convert]::FromBase64String($tt)
- [System.IO.File]::WriteAllBytes('C:\temp\txt.zip', $bb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement