Top "Memorystream" questions

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

Stream.CopyTo not copying any stream data

I'm having an issue with copying data from a MemoryStream into a Stream inside a ZipArchive. The following is NOT …

c# stream zip memorystream
How am I supposed to use ZipArchive with memory streams?

My problem is that as soon as ZipArchive is disposed, it automatically closes and disposes the MemoryStream. If I look …

c# memorystream ziparchive
want to re-use MemoryStream

My code uses MemoryStream to serialize/deserialize objects to/from the network. I would like to re-use a single MemoryStream …

c# reset memorystream
DeflateStream doesnt work on MemoryStream?

I have the following piece of code: MemoryStream resultStream = new MemoryStream(); string users = ""//Really long string goes here BinaryFormatter bFormatter = …

c# serialization memorystream deflate binary-serialization
Convert float to its binary representation (using MemoryStream?)

I'd like to convert a given float into its binary representation. I tried to write the float value into a …

c# binary memorystream floating-point-conversion
Email Attachment from memory stream is coming as blank in C#

I am able to send an attachment in a mail but the attachment content is blank and size is being …

c# .net email email-attachments memorystream
Decode base64 to image in vb.net

I've been searching on the internet and have not found an answer. Would you like to tell me, how to …

arrays vb.net image memorystream linegraph
Merge memorystreams to one iText document

I have four MemoryStreams of data that I want to merge and then open the pdfDocument, without creating a single …

c#-4.0 merge itext memorystream
With FileStreamResult, how is the MemoryStream closed?

The following code works, but I'm wondering if the MemoryStream created is closed properly. How should this be performed or …

.net asp.net-mvc-3 memorystream filestreamresult
how to return a xlsx file using memorystream web api

I am successfully making a web request, creating xlsx file and saving it to a directory. I would like to …

c# asp.net-web-api2 httpresponse memorystream system.net.httpwebrequest