Welcome › Forums › General PowerShell Q&A › Binary Code in a Variable
This topic contains 2 replies, has 2 voices, and was last updated by
Is it possible to load a variable array with binary code? In particular, I want to load profile photos into an array and assign them as needed. Thanks for any guidance.
Do you mean something like
$Pictures = [System.IO.File]::ReadAllBytes("C:\Users\user1\Pictures\picture1.jpg"),
@Curtis, that is exactly what I needed. Thank you!
The topic ‘Binary Code in a Variable’ is closed to new replies.