stream Questions

4

Solved

I'm having trouble with reading and writing the php://temp stream in PHP 5.3.2 I basically have: file_put_contents('php://temp/test', 'test'); var_dump(file_get_contents('php://temp/test')); Th...
Erich asked 10/5, 2011 at 7:20

2

I'm trying to write an SWI-Prolog predicate that applies numbervars/3 to a term's anonymous variables but preserves the user-supplied names of its non-anonymous variables. I eventually plan on addi...
Rorry asked 24/1, 2019 at 22:28

1

Solved

I have a Bloc class that needs three streams based on the same stream controller. class TodoBloc { final _todoController = StreamController<List<TodoModel>>(); get allTodoStream =&...
Vachel asked 20/1, 2019 at 14:45

1

I'm trying to use HLS to live stream but i get error: error: Optional("The operation could not be completed"), error: Optional(Error Domain=AVFoundationErrorDomain Code=-11800 "Media format -...
Larine asked 25/4, 2018 at 11:9

1

Solved

I am capturing events from a stream, each event is a Device Object. The way the stream work is that it is on a timer, so it picks up the same device multiple times and adds to the stream. I am put...
Flanagan asked 19/1, 2019 at 23:44

3

In Java it is possible to declare and fold infinite streams as so List<Integer> collect = Stream.iterate(0, i -> i + 2) .map(i -> i * 3) .filter(i -> i % 2 == 0) .limit(10) .col...

1

I would like to read a .txt file, append data to the end and finally send it to a zipstream. Right now what I'm doing is writting a new file and then using the new file for zipstream, but I would l...
Allembracing asked 18/7, 2014 at 8:44

7

Solved

I'm trying to get an image from an url using a byte stream. But i get this error message: This stream does not support seek operations. This is my code: byte[] b; HttpWebRequest myReq = (Http...
Hangbird asked 8/8, 2010 at 10:45

4

Solved

Is there a better way to determine the length of an std::istream than the following: std::istream* pcStream = GetSomeStream(); pcStream->seekg(0, ios::end); unsigned int uiLength = pcStream-&gt...
Hydromedusa asked 27/10, 2009 at 14:42

2

Solved

I am using the CSVHelper library, which can extract a list of objects from a CSV file with just three lines of code: var streamReader = // Create a reader to your CSV file. var csvReader = new Csv...
Laborer asked 31/3, 2013 at 6:49

1

Solved

I'm implementing WebRTC peer-to-peer call, it is working well in all browser except if chrome is the call initializer (who invoke invite function). if chrome is the call initializer, the ICE...
Nassi asked 2/1, 2019 at 13:33

6

Solved

There exists a File.ReadAllLines but not a Stream.ReadAllLines. using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Test_Resources.Resources.Accounts.txt")) using (St...
Fahrenheit asked 9/11, 2012 at 17:23

3

Solved

I've derived a custom streambuf for buffered network socket I/O, overriding underflow, overflow, and sync so that underflow is mutually thread-safe with the set of the other two, (I have separate i...
Baty asked 1/4, 2012 at 9:42

2

I work with NodeJS Transform stream that reads data from a Readable flow stream then converts it. When I destroy the Transform stream sometimes I get an error because the destroy function unpipes ...
Mailman asked 12/4, 2018 at 19:2

2

Solved

I am having difficulty with using fs.creadReadStream to process my csv file asynchronously: async function processData(row) { // perform some asynchronous function await someAsynchronousFunction...
Barthol asked 12/5, 2018 at 14:11

5

The purpose of my program is to open a text file of m lines of the same length n, read the file column by column and print each column. For example, for this text file abcd efgh jklm I would...
Cloven asked 22/10, 2018 at 10:14

1

Solved

Here's my code const fs = require('fs'); const src = fs.createReadStream('bigfile3.txt'); const des = fs.createWriteStream('newTest.txt'); I can use either src.on('data',(chunk)=>{ des.wri...
Surreptitious asked 14/12, 2018 at 5:54

5

Solved

I want to save a PdfSharp.Pdf.PdfDocument by its Save method to a Stream, but it doesn't attach the PDF header settings to it. So when I read back the Stream and return it to the user, he see that ...
Rabelais asked 2/7, 2009 at 9:2

1

I started learning NodeJS, and streams seems to be something that people use a lot. In most of the documentation that I had read there are mentions of the "back-pressure problem" that occ...
Endocrinology asked 4/1, 2017 at 16:28

3

Solved

I sometimes find myself in a situation where I have some Stream[X], and a function X => Future Y, that I'd like to combine to a Future[Stream[Y]], and I can't seem to find a way to do it. For ex...
Dream asked 4/8, 2013 at 14:1

1

Solved

While trying the OSGi PushStream library I felt that it was really slow. I have created two methods that do the same thing one using the PushStream and the other a simple BlockingQueue (see code be...
Shirelyshirey asked 9/12, 2018 at 13:34

6

SSCCE: gulp.task('foo', [], function() { var barFiles = getBarFiles(); var bazFiles = getBazFiles(); var barStream, bazStream; if (barFiles && barFiles.length > 0) { barStream = g...
Duckworth asked 1/9, 2014 at 12:4

2

My task at hand was to read a jpeg file in NodeJs and send it as http-response to answer a server request. Seemed to be trivial. However, my first solution failed. The browser did receive some bina...
Helluva asked 28/11, 2015 at 20:36

3

Solved

I'm using gulp to build a stream of glob-matched files and move them all, in their nested structure, to a new location. To do this, I first wanted to build a simple 'through' stream to see what I g...
Reinareinald asked 9/3, 2014 at 19:21

2

Solved

Currently I have a script like the following: <?php $filename = "http://someurl.com/file.ext"; header('Content-Type: application/octet-stream'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,...
Conservatory asked 17/7, 2016 at 2:26

© 2022 - 2024 — McMap. All rights reserved.