Last active
January 6, 2025 11:02
-
-
Save mattbalzan/3124a7fb65b7920dfd3a1e0102b2a8f6 to your computer and use it in GitHub Desktop.
Encode image to base64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --[ Encode image to base64 ] | |
# --[ Matt Balzan | mattGPT.co.uk ] | |
$path = "path\to\image\file.jpg" | |
[convert]::ToBase64String((Get-Content $path -Encoding byte)) >> "path\to\save\base64\text\to.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment