Top "Memorystream" questions

A memory stream is a kind of stream that has several methods to access and store data in memory.

Save and load MemoryStream to/from a file

I am serializing an structure into a MemoryStream and I want to save and load the serialized structure. So, How …

c# file io stream memorystream
How do you get a string from a MemoryStream?

If I am given a MemoryStream that I know has been populated with a String, how do I get a …

.net vb.net string memorystream
Attach a file from MemoryStream to a MailMessage in C#

I am writing a program to attach a file to email. Currently I am saving file using FileStream into disk, …

c# email smtp memorystream
Serializing/deserializing with memory stream

I'm having an issue with serializing using memory stream. Here is my code: /// <summary> /// serializes the given object …

c# serialization deserialization memorystream
Reading from memory stream to string

I am trying to write an object to an Xml string and take that string and save it to a …

c# xml-serialization xmlserializer memorystream
How to get a MemoryStream from a Stream in .NET?

I have the following constructor method which opens a MemoryStream from a file path: MemoryStream _ms; public MyClass(string filePath) { …

c# .net file-io stream memorystream
Copy MemoryStream to FileStream and save the file?

I don't understand what I'm doing wrong here. I generate couple of memory streams and in debug-mode I see that …

c# file-upload filestream memorystream
Name cannot begin with the ' ' character

I'm parsing some XML in C#. I'm getting it from a database, and so converting it to a MemoryStream before …

c# xml memorystream xmltextreader
difference between memory stream and filestream

During the serialization we can use either memory stream or file stream. What is the basic difference between these two? …

c# filestream memorystream
convert string to memory stream - Memory stream is not expandable?

i was trying to write a string to a memory stream, but failed with the error message: Memory stream is …

c# memorystream