SyntaxFix
Write A Post
Hire A Developer
Questions
In your case:
MemoryStream ms = new MemoryStream(buffer);