PowerShell Convert file to Base64 & convert base64 to file

59次阅读
没有评论
#Convert to base64
[convert]::ToBase64String((Get-Content -path "your_file_path" -Encoding byte))

#Convert to file from base64
$a = [Convert]::FromBase64String($base64)
[io.file]::WriteAllBytes("path to file",$a)

正文完
 
评论(没有评论)