Retrieving file name from memory stream?

  • Thread starter Thread starter Klaus Enevoldsen
  • Start date Start date
K

Klaus Enevoldsen

Hi,

I have a xml file that contains among other things a file,
converted into a string (using Convert.ToBase64String). I
would like to read the file into a memory stream again
using a Convert function (FromBase64String) and dertermine
the filename and possible other attributes and here comes
the hard part - without having to save the file onto a
harddisc.

So the question is: can i retrieve the filename from a
file stored in a memory stream without having to save the
file?

Thanks in advance...

Klaus Enevoldsen
 
Klaus,
So the question is: can i retrieve the filename from a
file stored in a memory stream without having to save the
file?

Not unless you store the filename yourself, perhaps in some kind of
header in the stream.



Mattias
 
Back
Top