How to convert FileStream to MemoryStream

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I do know how to convert a FileStream to MemoryStream.
Could somebody help me?
 
ad said:
I do know how to convert a FileStream to MemoryStream.
Could somebody help me?

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.

-cd
 

Ask a Question

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.

Ask a Question

Back
Top