SyntaxFix
Write A Post
Hire A Developer
Questions
Easy, simply wrap a MemoryStream around it:
MemoryStream
Stream stream = new MemoryStream(buffer);