You cannot "convert" a FileStream into anything, let alone a MemoryStream.
What you could do, perhaps what you want to do, is read the entire contents
of a FileStream into a MemoryStream, or expose the entire contents of a file
through a MemoryStream.
If you could take a step back and describe the problem you're trying to
solve, someone can help.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.