stream Questions

5

Solved

Other than an anonymous class (new OutputStream() { ... }), can anyone suggest a moral equivalent of new FileOutputStream("/dev/null") that also works on Windows? In case someone's wondering 'what...
Chavaree asked 24/1, 2010 at 17:25

7

Solved

I am getting the result StreamReader object. I want to convert the result into byte[]. How can I convert StreamReaderto byte[]? Thanks
Command asked 3/5, 2011 at 8:55

3

I am trying to use Bokeh to plot a streaming dataset within a Jupyter notebook. Here is what I have so far. From the command line I start the bokeh server by running the command $> bokeh serve...
Hymnody asked 29/3, 2017 at 18:34

4

Solved

I want to store the stderr output of a PowerShell command in a variable. I don't want to store it in a file and I don't want standard output included, just the error output. This redirects to a fi...
Nightstick asked 9/1, 2015 at 13:1

6

I would like to do something roughly equivalent to the code example below. I want to generate and serve a stream of data without necessarily having the entire data set in memory at any one time. I...
Thackeray asked 26/2, 2014 at 16:49

4

Solved

I recently wrote a small app that periodically checked the content of a directory. After a while, the app crashed because of too many open file handles. After some debugging, I found the error in t...
Sheikdom asked 2/5, 2016 at 19:21

8

Solved

Streams are kind of mysterious to me. I don't know when to use which stream and how to use them. Can someone explain to me how streams are used? If I understand correctly, there are three stream t...
Hupp asked 10/9, 2009 at 9:40

9

Solved

Please look through code below: // A.class File file = new File("blah.txt"); FileWriter fileWriter = new FileWriter(file); PrintWriter printWriter = new PrintWriter(fileWriter); // B.class File ...
Lacedaemon asked 17/11, 2009 at 6:52

2

Solved

I want to compress multiples files into a zip files, I'm dealing with big files, and then download them into the client, for the moment I'm using this: @RequestMapping(value = "/download", method ...
Cacilia asked 21/12, 2018 at 13:17

2

Solved

there's a pdf generated on an external service and I would like to stream the pdf to the browser in my php server while streaming to client so that I don't need to download the pdf from the remote ...
Locative asked 30/5, 2013 at 22:41

3

Solved

Can someone help me? I am trying to do something like the following: #include <boost/iostreams/tee.hpp> #include <boost/iostreams/stream.hpp> #include <sstream> #include <ca...
Vespiary asked 22/3, 2009 at 2:48

8

Does C++ stl have a standard time class? Or do I have to convert to c-string before writing to a stream. Example, I want to output the current date/time to a string stream: time_t tm(); ostringst...
Gradatim asked 30/10, 2009 at 16:2

4

Solved

I have a program that takes the Console output and writes it to a logfile, however it no longer shows up in the console window. Is there a way to keep it in the window but write it to the log file ...
Disorder asked 6/6, 2012 at 16:20

6

Solved

Is it possible to get filename from the byte array or stream? I wont to save the file. I just want to retrieve its name.
Steed asked 5/1, 2012 at 11:46

4

Has anyone had success with reading SHOUTcast/Icecast metadata from a remote radio stream? There are several libraries that can read metadata from a local MP3 file, but none seem designed to work ...
Intermixture asked 7/7, 2011 at 16:4

1

I am encountering a weird issue in visual studio 2022 (version 17.7.1). In the following program: #include <iostream> #include <sstream> using namespace std; int main() { istringstrea...
Calamander asked 19/8, 2023 at 22:14

21

Solved

How do I collect all the data from a Node.js stream into a string?
Satterlee asked 16/5, 2012 at 17:42

3

Solved

I'm recently studying and reading a lot about Flow and Kotlin Coroutines. But I still get confused about when I should use Flow and when I should use Channel. At the beginning it looked more simple...
Attainable asked 19/12, 2019 at 15:35

10

Solved

I am retrieveing an XML feed from a url and then parsing it. What I need to do is also store that internally to the phone so that when there is no internet connection it can parse the saved option ...
Rejoinder asked 1/6, 2012 at 16:38

4

Solved

I'm working with some multi-gigabyte text files and want to do some stream processing on them using PowerShell. It's simple stuff, just parsing each line and pulling out some data, then storing it ...
Exodus asked 16/11, 2010 at 7:46

3

Solved

I have a file that looks like this: A B C D E 0 8 6 12 5 8 0 10 8 9 6 10 0 7 11 12 8 7 0 6 5 9 11 6 0 I don't know ahead of time how many rows and columns there will be. I would like to read the...
Lamont asked 3/10, 2009 at 17:25

7

Solved

I have a list of objects and I need to save that somewhere in my computer. I have read some forums and I know that the object has to be Serializable. But it would be nice if I can get an example. F...
Violoncello asked 24/5, 2011 at 19:22

6

Solved

I'm having some difficulty embedding an image from the Properties.Resources to a MailMessage, currently the image does not show in the email i receive. I have successfully embedded the image from ...
Futtock asked 7/6, 2011 at 7:33

6

I am trying to make a simple software which stores data in a TXT log file. This is my code FileStream fs = null; StreamWriter fw = null; try { fs= new FileStream(Environment.GetFolderPath(Environ...
Sultana asked 16/3, 2013 at 18:16

2

Solved

I'm sure this question is going to prove my ignorance, but I'm having a hard time understanding this. I'm willing to ask a dumb question to get a good answer. All of the posts I've read about asy...
Kirby asked 16/10, 2019 at 12:2

© 2022 - 2024 — McMap. All rights reserved.