I am trying to convert base64 strings back to source files. The application where I am trying to export these files from will only allow me to export base64 strings. This export returns a base64 string and file type.
How can I convert these lines back to source files? I tried such things, but I donβt think this will work with different types of files?
[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($file)) | Out-File C:\ID\document.$($extension)
Can someone give me some ideas on how to do this?
source share