Questions tagged [stream]
DO NOT USE FOR THE JAVA STREAM API INTRODUCED IN JAVA 8 (use [java-stream] for those questions!) A stream is a series of data elements which can be accessed in a serial fashion.
stream
15,601
questions
-1
votes
1
answer
43
views
RxJava strip bytes at regular interval from a stream and then further extract messages based on length indicator of message bytes
I have a Java inputstream, that I skip 2 bytes every n bytes. Now the output of that are bytes that are clean after stripping the 2 delimiters every n bytes.
This output is a series of bytes where the ...
1
vote
1
answer
32
views
System.Text.Json.JsonSerializer does not overwrite existing file fully when using file stream
Consider the following code:
internal class Program
{
static async Task Main(string[] args)
{
var t = new Thing() { Name = "Some Long Name" };
string path = @"c:\...
0
votes
0
answers
32
views
Streaming data from delegate to function call
I have a 3rd party library that calls a delegate every time there is a buffer of data, and I need to get this buffer into a stream and send the stream to S3.
So I use a FileStream to write to a ...
0
votes
0
answers
67
views
NodeJS ECONNRESET error onStreamRead while downloading large csv
I'm trying to download a very large gzipped csv file, hosted on a S3 server. I want to insert each csv row to my database. To achieve that I get the encoded stream, unzip it, parse it and save it to ...
0
votes
3
answers
157
views
Issues in Streaming response from flask-smorest
I'm encountering issues in streaming response in flask-smorest. I'm following the guidance here - https://flask.palletsprojects.com/en/2.3.x/patterns/streaming/ for streaming responses from my flask-...
0
votes
2
answers
70
views
Array not resetting in JavaScript while reading from stream
I am trying to insert data coming from a remote CSV file in MongoDB (using Mongoose).
I would like to do so in bulk inserts of 100 items at a time.
Here's my code:
import csv from 'csv-parser'
import ...
0
votes
1
answer
53
views
NextJS v14 architecture to call a LLM
In a NextJS v14 application, I need to call a proxy API that interacts with an LLM. The API returns an NDJSON response, which needs to be processed using the ndjsonStream function from the can-ndjson-...
0
votes
0
answers
9
views
How to extract particular field from custom duplicate objects and build a another response list using java 8 streams
I have below response from database and I need to convert it into the final json format using java 8 streams.
Response from Database:
[
{
"name": "Test1",
"age": "33&...
0
votes
1
answer
15
views
Azure Stream Analytics get counts only if count has changed between windows
I'm trying to create a query in Azure Stream Analytics that each hour will give me number of events (grouped by some columns) in last 8 hours.
I'm using HoppingWindow(hour, 8, 1) in my GROUP BY clause ...
0
votes
0
answers
61
views
Stream hls/m3u8 with HTML
I was wondering, is it possible to make a html code to play a video file hosted in a host that use hls/m3u to stream the video?, for example, if I have a link let's say: www.hostvideos.com/e/file123 ...
0
votes
1
answer
35
views
how to read ndjson stream response in php
sorry if my question is silly but there's something I'm not getting.
I'm using Guzzle in a PHP process to make an API call.
$response = $this->client->request('GET', 'droits_acces', [
...
-2
votes
0
answers
48
views
Upload a file to Google cloud storage bucket: Camel vs gcloud CLI
I want to upload a file to a Google cloud storage bucket.
With Java/Camel:
from("file://target/upload?delete=true")
.routeId("GCP file upload route")
.log("...
1
vote
1
answer
53
views
Write and read string from MemoryStream
Please consider this scenario:
I want to read a file and then place its bytes to MemoryStream and then write some strings to it and then immediately read entire MemotyStream. For example I have a text ...
0
votes
0
answers
25
views
What is the difference between : RTMP, HLS, DASH, HTTP, WebRTC, ngx_stream in nginx conf
Studing nginx I cam to the stream directive and rtmp I found many streeming options
There is many things called streaming and I'm new to these concepts
RTMP
HLS
DASH
HTTP(S)
ngx_stream (stream ...
0
votes
0
answers
20
views
Issue when adding text in liquidsoap
Using liquidsoap to stream to facebook, however I have an issue where if i add text or image, i get the following error, any idea why
#!/usr/bin/liquidsoap
enc = %ffmpeg(
format="flv",
%...