title: Powershell: convert UTF-8 binary code to image
body: <p>I have a UTF8 binary encoded image and I want to convert it to png with powershell. I found the following:</p>
  <pre><code>$bytes = [Convert]::FromBase64String($base64)
  [IO.File]::WriteAllBytes(&quot;imagen.png&quot;, $bytes)
  </code></pre>
  <p>But this deals with base64 encodings. It's not what I want. Is there a way to do it in powershell?</p>
  <p>Thank you!</p>