Hi,
After reading the stream content into the pBytes buffer, you could open another stream onto the newly created MemoryFile and then do a write into it using the buffer.
For example:
...
byte [] buffer = new byte [vStream.Length-1];
vStream.Read(buffer,0,buffer.Length);
MemoryFile pMF = new MemoryFile();
Stream stream = pMF.OpenWrite(true, FileShare.ReadWrite);
stream.BeginWrite(buffer, 0, buffer.Length, null, null);
...
Xceed - Software Developer and Technical Support