PC Review


Reply
Thread Tools Rate Thread

How to convert FileStream to MemoryStream

 
 
ad
Guest
Posts: n/a
 
      27th Aug 2006
I do know how to convert a FileStream to MemoryStream.
Could somebody help me?


 
Reply With Quote
 
 
 
 
Carl Daniel [VC++ MVP]
Guest
Posts: n/a
 
      27th Aug 2006
ad wrote:
> 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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filestream to Memorystream paradigmshift Microsoft C# .NET 2 17th Sep 2008 11:34 PM
How to get the Encoding of a FileStream or MemoryStream? darin dimitrov Microsoft Dot NET 3 17th Sep 2004 03:19 PM
Replacing a Filestream with a Memorystream Kai Bohli Microsoft C# .NET 4 8th Feb 2004 12:30 PM
Replacing a Filestream with a Memorystream Kai Bohli Microsoft Dot NET 2 7th Feb 2004 06:30 PM
FileStream to MemoryStream Michel Racicot Microsoft Dot NET 2 17th Jan 2004 10:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:40 PM.