Skip to content

Instantly share code, notes, and snippets.

@wim-beck
Created May 19, 2017 10:08
Show Gist options
  • Save wim-beck/d4356201a4dae10e5aac076f0b4be34c to your computer and use it in GitHub Desktop.
Save wim-beck/d4356201a4dae10e5aac076f0b4be34c to your computer and use it in GitHub Desktop.
Convert base64 to picture
param($textImg, $destinationImg)
$base64 = Get-Content $textImg
$bytes = [Convert]::FromBase64String($base64)
[IO.File]::WriteAllBytes($destinationImg, $bytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment