Top "Stream" questions

DO NOT USE FOR THE JAVA STREAM API INTRODUCED IN JAVA 8 (use [java-stream] for those questions!

Can I redirect the stdout in python into some sort of string buffer?

I'm using python's ftplib to write a small FTP client, but some of the functions in the package don't return …

python stream stdout redirect
"Parameter not valid" exception loading System.Drawing.Image

Why am I getting the exception "Parameter not valid" in my code: MemoryStream ms = new MemoryStream(byteArrayIn); System.Drawing.Image …

c# image stream argumentexception
How do I read the contents of a Node.js stream into a string variable?

I'm hacking on a Node program that uses smtp-protocol to capture SMTP emails and act on the mail data. The …

javascript node.js stream
Edit a specific Line of a Text File in C#

I have two text files, Source.txt and Target.txt. The source will never be modified and contain N lines …

c# stream filestream
How does one create an InputStream from a String?

I'm not used to working with streams in Java - how do I create an InputStream from a String?

java string stream
ASP.Net MVC - Read File from HttpPostedFileBase without save

I am uploading the file by using file upload option. And i am directly send this file from View to …

file c#-4.0 file-io asp.net-mvc-2 stream
How to create an instance of System.IO.Stream stream

How to create an instance of System.IO.Stream stream. One of my function receives System.IO.Stream stream as …

c# memory stream
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
Read from file or stdin

I am writing a utility which accepts either a filename, or reads from stdin. I would like to know the …

c file io stream stdin
How to get error message when ifstream open fails

ifstream f; f.open(fileName); if ( f.fail() ) { // I need error message here, like "File not found" etc. - // the …

c++ error-handling stream std