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,586
questions
0
votes
0
answers
6
views
Exoplayer HLS Cache
Is it possible to cache played hls stream from exoplayer? I was reading a lot about caching of other media types, but I couldn't find any solution for hls streams. There are some old comments like the ...
0
votes
0
answers
4
views
How Can I Use Run Manager to Stream Response on RetrievalQA?
I'm working with the langchain library and transformers to build a language model application. I want to integrate a CallbackManagerForLLMRun to stream responses in my RetrievalQA chain. Below is the ...
-1
votes
1
answer
39
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 ...
0
votes
1
answer
25
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
30
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
18
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
1
answer
112
views
+50
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
64
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
36
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
8
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
14
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
35
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
33
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
36
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
48
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 ...