I
I
Ivan2019-03-29 19:50:04
PowerShell
Ivan, 2019-03-29 19:50:04

How to add an image to an alternate stream using PowerShell?

You need to add an existing image to the stream to a plain text .txt file. I use this command:

Get-Content -Path "C:\picture.png"| Set-Content -Path "C:\file_stream_0.txt" -Stream MyStream1

At the output, when I try to view the stream MyStream1 shows something like this:
5c9e4c9a18f3e724652314.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2019-03-29
@Zoominger

What surprises you? :) This is what a picture looks like when opened in a notepad.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question