Top "Memorystream" questions

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

Simpler way to create a C++ memorystream from (char*, size_t), without copying the data?

I couldn't find anything ready-made, so I came up with: class membuf : public basic_streambuf<char> { public: membuf(…

c++ memorystream
Stream was not readable error

I am getting the message "Stream was not readable" on the statement: using (StreamReader sr = new StreamReader(ms)) I have …

c# xml-serialization memorystream
Writing to MemoryStream with StreamWriter returns empty

I am not sure what I am doing wrong, have seen a lot of examples, but can't seem to get …

c# memorystream streamwriter
Image.FromStream() method returns Invalid Argument exception

I am capturing images from a smart camera imager and receiving the byte array from the camera through socket programming (.…

c# .net image exception memorystream
Serializing a memorystream object to string

Right now I'm using XmlTextWriter to convert a MemoryStream object into string. But I wan't to know whether there is …

c# xml-serialization memorystream
Creating Zip Files from Memory Stream C#

Basically the user should be able to click on one link and download multiple pdf files. But the Catch is …

c# zip memorystream
Writing a Text File in memory and saving it with savefiledialog

I am trying to make a text file in memory, add some lines to it and at the end save …

c# memorystream savefiledialog textwriter
Using MemoryStream to write out to XML

I have noticed two different approaches to writing out data to an XML file (error handling omitted for brevity). The …

c# xml memorystream
StreamReader from MemoryStream UTF8 Encoding

I want to open a XML file (from an zip archive) in a MemoryStream and create a StreamReader form this …

c# streamreader memorystream
Writing strings to TMemoryStream

I have read alot of discussions on here regarding writing strings to a TMemoryStream and saving to file and reading …

delphi stream memorystream