stream Questions

3

I was trying to use Stream api with fetch in react-native app, I implemented with the help of a great example mentioned at jeakearchibald.com . code is something similar to :- fetch('https://html....
Gilford asked 19/5, 2019 at 12:47

2

This is the code inside the builder method of the Streambuilder that causes the issue: List<User> users = snapshot.data; users.sort((user1, user2) => (user1.distanceInKm ?? 1000).compareT...
Songster asked 21/12, 2019 at 19:8

2

I use AWS CloudWatch log agent to push my application log to AWS Cloudwatch. In the cloudwatchLogs config file inside my EC2 instance, I have this entry: [/scripts/application] datetime_format = ...

4

Solved

There is a lib that outputs its results into a given Stream object. I would like to begin consuming the results before the lib is done. The Stream should be blocking to simplify usage and avoid exc...
Diode asked 15/9, 2010 at 20:31

2

I am currently working on a way to implement the openai-node package into my Next.js application. Because of the long generation times of OpenAI completions, I want to make use of streaming (which ...
Pneumothorax asked 12/4, 2023 at 19:6

2

I'm using nodemailer, and pdfmake to create a pdf, and send it in the email's attachments. I don't have too much experience with file handling in NodeJS, and I can't make it work. See example where...
Termination asked 29/1, 2022 at 13:34

5

Solved

I have a csv parser implemented as a series of transform streams: process.stdin .pipe(iconv.decodeStream('win1252')) .pipe(csv.parse()) .pipe(buildObject()) .pipe(process.stdout); I'd like t...
Buzzell asked 16/5, 2014 at 14:27

1

I am trying to get snapshots from video data that can be in a MemoryStream OR Byte[] but not located on physical file path. FFMpegCore provide option to use Arguments with PipeSource but not sure h...
Azpurua asked 30/11, 2021 at 5:2

7

Solved

I am using the System.Net.Http.HttpClient to do some client-side HTTP communication. I've got all of the HTTP in one spot, abstracted away from the rest of the code. In one instance I want to read ...
Verger asked 31/12, 2014 at 2:17

1

I'm would to know why AVPlayer ask's union ranges in requests. Example: 1. We have good wi-fi connection. 2. Track with total length = 1000000. AVPlayer in first will ask bytes=0-1 - its ok, it j...
Quartersaw asked 5/8, 2013 at 12:20

3

I have a MediaStreamSource sourced from navigator.getUserMedia, which is connected to a GainNode, which in turn is connected to a ScriptProcessorNode, like so: [getUserMediaStream] -> [MediaStr...
Boswell asked 11/12, 2013 at 23:26

3

Solved

I read an answer here showing how to read an entire stream into a std::string with the following one (two) liner: std::istreambuf_iterator<char> eos; std::string s(std::istreambuf_iterator&...
Mutt asked 27/10, 2014 at 14:3

2

Solved

I have a Web Serial port that I want to read some data from. I'd like to use TransformStreams to do some processing (e.g. decode bytes to strings, separate out logical messages, etc) by using pipeT...
Stipendiary asked 25/2, 2022 at 7:28

7

Solved

I've a working logger class, which outputs some text into a richtextbox (Win32, C++). Problem is, i always end up using it like this: stringstream ss; ss << someInt << someString; de...
Bennion asked 4/2, 2009 at 15:13

3

Solved

Current setup as follows: stream { server { listen 9987 udp; server_name subdomain.EXAMPLE.com; # this line is resulting in an error proxy_pass localhost:9987; proxy_timeout 1s; proxy_resp...
Merengue asked 21/7, 2017 at 1:18

10

Why am I getting the exception "Parameter not valid" in my code: MemoryStream ms = new MemoryStream(byteArrayIn); System.Drawing.Image returnImage = System.Drawing.Image.FromStream(ms); The leng...
Warble asked 10/3, 2009 at 12:40

7

Solved

When I try to install or update packages on my CentOS Stream 8, then this error occurs: cd ~ sudo yum update Output: PostgreSQL common RPMs for RHEL / Rocky 8 - x86_64 613 B/s | 659 B 00:01 ...
Bestow asked 8/1 at 19:7

6

I have a REST server that is supposed to send plain text output as a stream, but when I perform the REST call with Postman or Chrome I get the whole output at once at the end of the process instead...
Intitule asked 2/1, 2018 at 7:20

4

I'm using Symfony 2.0. I have created a command in Symfony and I want to take its output and write it to a file. All I want is to take everything that is written on the standard output (on the co...
Sheriesherif asked 7/10, 2014 at 8:39

14

Solved

I am using a library, ya-csv, that expects either a file or a stream as input, but I have a string. How do I convert that string into a stream in Node?
Patch asked 6/10, 2012 at 1:50

6

Solved

I am an absolute newbie in Haskell yet trying to understand how it works. I want to write my own lazy list of integers such as [1,2,3,4,5...]. For list of ones I have written ones = 1 : ones a...
Granddad asked 21/3, 2010 at 13:3

66

Solved

If you have a java.io.InputStream object, how should you process that object and produce a String? Suppose I have an InputStream that contains text data, and I want to convert it to a String, so f...
Atkins asked 21/11, 2008 at 16:47

3

Solved

jq is suppose to process/filter JSON inputs and producing the filter's results as JSON However, I found that after the jq process/filter, output result is no longer in JSON format any more. ...
Sappington asked 17/3, 2018 at 21:32

3

Solved

This is my scenario: producer.WriteStream(stream); consumer.ReadStream(stream); I want something that allows the bytes generated by the producer to be progressively transfered to the consumer. ...
Kelliekellina asked 4/11, 2015 at 13:38

2

I have been trying to figure out how to stream my desktop (over LAN) using VLC and to achieve the lowest latency possible (<100ms). The goal is to have another computer receive the stream and po...
Leitmotiv asked 4/5, 2013 at 1:38

© 2022 - 2024 — McMap. All rights reserved.