I can convert a jpeg to a base64 string using the following PowerShell command
[Convert]::ToBase64String((Get-Content -Path .\Capture.jpg -Encoding Byte)) >> capture.txt
I tried converting it back using the following
[Convert]::FromBase64String((Get-Content -Path .\capture.txt)) >> capture2.jpg
But I get a list of numbers and not a binary file. How do I convert the base64 file back to binary?