Questions tagged [streams-api]
8 questions
2
votes
4 answers
Java remove entries from list where certain attributes are duplicated
I'm new into programming and now facing a tricky problem:
I got an Object which contains a list, so the Object looks like the following:
public class SampleClass {
private UUID id;
private List values;
// getters,…

noob123
- 63
- 1
- 2
- 9
2
votes
1 answer
Calculate file checksum in JS using ReadableStream and PipeTo?
I wish to calculate a file's checksum locally with JS and have been searching for examples of how to accomplish this using the Streams Api and pipeTo, but have only found examples with Node.js which I am not familiar with. What I'm looking for is…

Andreas Zita
- 7,232
- 6
- 54
- 115
0
votes
1 answer
Is it possible to implement websockets in Javascript with Streams api?
Is it possible to use the Streams API in JavaScript to implement the WebSockets protocol for a browser client (not in Node.JS)?
The built-in WebSocket class does not work for my needs because it does not support sending an HTTP header, and I need to…

sevzas
- 701
- 2
- 5
- 13
0
votes
1 answer
Forwarding ReadableStream in NodeJS Cloud function with additional chunk added before end
I have the following function, which should do the following:
Take a ReadableStream
Read it chunk by chunk
Before the last chunk (openai indicates this with a "DONE" string), an extra chunk with my extensionPayload should be added.
The issue is…

flavordaaave
- 644
- 9
- 21
0
votes
1 answer
Java aggregate same objects into one
I'm quite new into programming and got a tricky question.
I got an object which has multiple parameters:
public class SampleObject {
private String number;
private String valueOne;
private String valueTwo;
private String valueThree;
…

noob123
- 63
- 1
- 2
- 9
0
votes
1 answer
How to get Call Status(Connected, Busy, No answered & Ringing) from Amazon Connect Streams API?
I am using Amazon Connect Streams API [https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md] and we have different call status in Amazon Connect e.g. call connected, call missed/no answered!
how can i get call status…

Abdul Qayyum
- 104
- 1
- 8
0
votes
1 answer
How do I overcome browser lag because of large file upload with AJAX (axios)?
I've implemented a simple multiple file upload function with ReactJS in the frontend using axios for AJAX requests.
const FileUploader = () => {
const uploadFiles = files => {
const formData = new FormData();
files.forEach( file => {
…

anonym
- 4,460
- 12
- 45
- 75
-2
votes
3 answers
Java 8 : Count the occurrence of digit 4 in the given int array
I am new to Java 8. I tried several ways to use the Streams API to solve the problem where we have been given an array of int = {48, 44, 4, 88, 84, 16, 12, 13 }. All I am trying to do is to find the occurrence of digit 4 in the whole array. I tried…

user3454622
- 65
- 6