I am getting the result StreamReader object.
StreamReader
I want to convert the result into byte[].
byte[]
How can I convert StreamReaderto byte[]?
Thanks
A StreamReader is for text, not plain bytes. Don't use a StreamReader, and instead read directly from the underlying stream.
2.1m questions
2.1m answers
60 comments
56.9k users