stream Questions

6

Solved

Imagine you have many long text files, and you need to only extract data from the first line of each one (without reading any further content). What is the best way in Node JS to do it? Thanks!
Tonicity asked 26/2, 2015 at 16:32

7

I am getting a error when attempting stream.Length on a Stream object sent into my WCF method. Unhandled Exception! Error ID: 0 Error Code: Unknown Is Warning: False Type: System.NotSupportedE...
Benedix asked 30/7, 2010 at 16:41

2

Solved

I am experimenting with the MediaStream Recording API within Electron (therefore Node.js) and wish to handle the output as a stream. Handling as a stream would allow me to process the MediaRecorder...
Ligan asked 28/3, 2020 at 15:42

11

[ExternalException (0x80004005): A generic error occurred in GDI+.] IpitchitImageHandler.Data.ImageRepository.AddNewTempImage(Stream image, String extension, Guid PageId, Guid ImageId, ImageTransf...
Elana asked 25/6, 2009 at 13:56

4

Solved

I have been trying to stream local video on VLC using the FFmpeg library like this: $ ffmpeg -i sample.mp4 -v 0 -vcodec mpeg4 -f mpegts udp://127.0.0.1:23000 I have not been able to stream t...
Idaline asked 7/5, 2017 at 0:31

6

Solved

I am looking for a python snippet to read an internet radio stream(.asx, .pls etc) and save it to a file. The final project is cron'ed script that will record an hour or two of internet radio and ...
Dysphonia asked 22/11, 2010 at 15:47

3

Solved

I'm building a file upload application to familiarize myself with the concept of streams. I'm trying to turn a file list or blobs into a stream then upload it to the backend and store it on the fil...
Berl asked 15/4, 2020 at 15:16

2

Solved

I have a DownloadsService class that handles downloading of file using dio package. I want to listen to the download progress from my ViewModel class that implements the downloadFile method inside ...
Gains asked 14/6, 2020 at 21:17

1

I am trying to do the following: Stream a csv file in line by line. Modify the data contained in each line. Once all lines are streamed and processed, finish and move on to next task. The probl...
Newfeld asked 31/3, 2016 at 23:28

3

Solved

I'm creating an IStream as follow: IStream* stream; result = CreateStreamOnHGlobal(0, TRUE, &stream); Then I have a CImage object that I save to this stream: image->Save(stream, Gdiplus:...
Shedevil asked 13/10, 2009 at 16:26

13

I've got the lovely task of working out how to handle large files being loaded into our application's script editor (it's like VBA for our internal product for quick macros). Most files are about 3...
Ean asked 29/1, 2010 at 12:36

2

I am very intrigued by Redis streams. (Looks like the potential to build little systems powered by append-logs, like Kafka, but without all the overhead of Kafka.) It looks straightforward to XADD...
Homomorphism asked 22/3, 2019 at 17:43

2

Solved

I have an API that is trying to make an HTTP request to an API that streams and image back to the me, then either stream that image back to the client making the request to me or wait until the ima...
Chiropodist asked 10/9, 2017 at 21:28

3

Solved

I have a view that generates data and streams it in real time. I can't figure out how to send this data to a variable that I can use in my HTML template. My current solution just outputs the data t...
Domenic asked 11/8, 2015 at 17:30

3

Solved

When you need to reset a stream to beginning (e.g. MemoryStream) is it best practice to use stream.Seek(0, SeekOrigin.Begin); or stream.Position = 0; I've seen both work fine, but wondered i...
Luiseluiza asked 30/8, 2011 at 5:7

6

Solved

I have two streams fetching from two different api. Stream<Month> get monthOutStream => monthOutController.stream; Stream<MySchedule> get resultOutStream => resultController.stre...
Pentosan asked 16/8, 2018 at 15:13

2

Solved

I have a Ring handler that needs to: Zip a few files Stream the Zip to the client. Now I have it sort of working, but only the first zipped entry gets streamed, and after that it stalls/stops....
Kimberly asked 2/9, 2016 at 9:21

3

Solved

In my function GetAssemblyResourceStream (code below), I read resource from Dll using "assembly.GetManifestResourceStream" and "resourceReader.GetResourceData". When I set my memory stream from th...
Nilsson asked 1/10, 2015 at 15:9

7

Solved

I am trying to write a class that can compress data. The below code fails (no exception is thrown, but the target .gz file is empty.) Besides: I don't want to generate the .gz file directly like it...
Lowney asked 8/2, 2013 at 17:12

5

Solved

I was wondering if you know of any way to use prolog for stream processing, that is, some kind of reactive programming, or at least to let a query run on a knowledge base that is continuously updat...
Geomancer asked 16/10, 2013 at 15:40

2

Solved

i am using vue.js and found some good examples how to realize this. Currently my API is returning a test-pdf: $snappy = App::make('snappy.pdf'); $html = '<h1>Bill</h1><p>You ...
Shatterproof asked 15/12, 2018 at 17:37

1

Solved

I'm new to Nodejs. I am saving a zip file from S3 bucket to EC2 instance which is hosting the nodejs service, and then I am decompressing the zip file locally in the file system in EC2: const s3I...
Fabriane asked 11/2, 2022 at 3:56

2

Solved

I have a program that communicates with Asterisk via EAGI. Asterisk opens up my Node.js application and sends it data via STDIN and the program sends Asterisk commands via STDOUT. When a user hangs...
Prevail asked 15/6, 2015 at 19:13

3

Solved

I have a running stream of integers, how can I take largest k elements from this stream at any point of time.
Shirt asked 18/6, 2015 at 12:0

4

I can't seem to get this to work. I want to write some data to a gzip stream and then pipe the gzip stream to a file write stream. I want to then call a function when the files done writing. I curr...
Pamilapammi asked 19/8, 2014 at 22:21

© 2022 - 2024 — McMap. All rights reserved.