Top "Memorystream" questions

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

MemoryStream in Using Statement - Do I need to call close()

When using a memory stream in a using statement do I need to call close? For instance is ms.Close() …

c# using memorystream using-statement
How to merge two memory streams?

I have two MemoryStream instances. How to merge them into one instance? Well, now I can't copy from one MemoryStream …

c# .net memorystream
Get Imagesource from Memorystream in c# wpf

How can I get ImageSource from MemoryStream in WPF using c# ? or convert MemoryStream to ImageSource to display it as …

c# wpf memorystream imagesource
Do I need to do StreamWriter.flush()?

Suppose this C# code: using (MemoryStream stream = new MemoryStream()) { StreamWriter normalWriter = new StreamWriter(stream); BinaryWriter binaryWriter = new BinaryWriter(stream); foreach(...) { …

c# flush memorystream streamwriter
iTextSharp + FileStream = Corrupt PDF file

I am trying to create a pdf file with iTextSharp. My attempt writes the content of the pdf to a …

c# pdf itextsharp filestream memorystream
Getting PdfStamper to work with MemoryStreams (c#, itextsharp)

It came to me to rework old code which signs PDF files into new one, which signs MemoryStreams (byte arrays) …

c# pdf itext memorystream pdfstamper
Use MemoryStream and ZipArchive to return zip file to client in asp.net web api

I am trying to return zip file from asp.net web api to client using The following Code: private byte[] …

c# ajax asp.net-web-api memorystream ziparchive
How to remove data from a MemoryStream

I cannot get this to work. I have a MemoryStream object. This class has a Position property that tells you …

c# .net memorystream
Saving an Image file to sql Server and converting byte array into image

I am storing images in a database and would like to convert them from byte array to image. I have …

c# asp.net sql-server memorystream
XML writer and Memory Stream c#

I am creating a file using XmlWriter, XmlWriter writer = XmlWriter.Create(fileName); it is creating a file and then i …

c# memorystream xmlwriter