Top "Memorystream" questions

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

MemoryStream.Read doesn't copy bytes to buffer - c#

I don't really get it and it's driving me nuts. i've these 4 lines: Image img = Image.FromFile("F:\\Pulpit\\soa.…

c# image buffer memorystream
Read ionic Zip as Memory Stream C#

I am using Ionic.Zip to extract ZipFile to memory stream with this method: private MemoryStream GetReplayZipMemoryStream() { MemoryStream zipMs = new …

c# stream zip memorystream
When is GetBuffer() on MemoryStream ever useful?

I've known that GetBuffer() on a MemoryStream in C#/.NET has to be used with care, because, as the docs …

.net memorystream getbuffer
Delphi - MemoryStream or FileStream

I am downloading an EXE file from internet using Indy (idHTTP), and I can use memorystream or filestream to save …

delphi filestream indy memorystream idhttp
Decompress byte array to string via BinaryReader yields empty string

I am trying to decompress a byte array and get it into a string using a binary reader. When the …

c# memorystream gzipstream binaryreader
C# return memory stream from OpenXML resulting to a corrupted word file

I have a problem with a MemoryStream from OpenXML. I succeed with opening a Word file, changing it and downloading …

c# .net ms-word openxml memorystream
Web Api 2 - How to return an image (MemoryStream from Azure Storage) from a HTTPGET without saving to disk?

I'm using Web Api 2 with C# and Azure, and having issues with how to return the image (base from Memorystream) …

c# angularjs asp.net-web-api2 http-get memorystream
Difference between Stream.CopyTo and MemoryStream.WriteTo

I have a HttpHandler returning an image through Response.OutputStream. I have the following code: _imageProvider.GetImage().CopyTo(context.Response.…

c# stream httphandler memorystream
Get length of Streamreader

How can I get the length of a StreamReader, as I know nothing will be written to it anymore. I …

c# streamreader memorystream
Why does MemoryStream.GetBuffer() always throw?

The following code will always throw UnuthorizedAccessException (MemoryStream's internal buffer cannot be accessed.) byte[] buf1 = { 2, 3, 5, 7, 11 }; var ms = new MemoryStream(buf1); …

windows exception memorystream getbuffer