stream Questions
1
Solved
How do I CSV encode and then zip?
Is there a way to chain a writer to another? Must I create a new buffer in between writers?
var buf bytes.Buffer
zipWriter := zip.NewWriter(&buf)
csvwriter...
2
Solved
I'm writing a simple(ish) application that allows an internal system at work to request a copy process (using rsync) from a remote server to another remote server instigated using a REST call.
I'm...
Skein asked 17/3, 2015 at 12:18
1
Solved
I'm trying to query a few documents from a collection, this query should listen to changes made in the queried documents, so I'd need a stream. I'm doing following (in Dart/Flutter)
Stream<Lis...
Mouthful asked 18/12, 2019 at 13:31
1
Solved
I'm doing a direct download of an MP3 audio stream via Rust. As this stream is indefinite, I want to be able to cancel it early to save what I have downloaded so far. Currently, I do this by pressi...
1
I've made an Android app that makes the smartphone run in USB host mode. I did so using the Android official documentation given here:
https://developer.android.com/guide/topics/connectivity/usb/h...
Remus asked 29/11, 2019 at 10:34
6
Solved
I have this code:
string s = "آ";
StreamWriter writer = new StreamWriter("a.txt", false, Encoding.UTF8);
writer.WriteLine(s);
but when I run it I can't see any "آ" in a.txt!! There isn't any str...
Suomi asked 19/11, 2011 at 19:45
2
Solved
I have two streams:
Stream<FirebaseUser> FirebaseAuth.instance.onAuthStateChanged
Stream<User> userService.streamUser(String uid)
My userService requires the uid of the authenticate...
Seibert asked 6/10, 2019 at 17:24
1
I want to make a react-native app that is able to:
show live streaming
upload live streaming
save streaming
I have a rtmp url and a playback url. I tried to achieve my goals using "react-nati...
Tessitura asked 7/10, 2016 at 6:20
3
I'm looking a for a way to programmatically add a transformer to an existing stream that's already being listen to.
Example:
Stream numbers = new Stream.fromIterable([0,1,2,3]);
numbers.listen...
Sacramentalist asked 18/9, 2014 at 0:37
3
Solved
I am trying to read an Http response stream twice via the following:
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
stream = response.GetResponseStream();
RssReader reader = ne...
1
Solved
I have an API that takes a binary file stream. I am able to hit the API using postman.
Now on the server-side, the content of XML is in string object, So I have created stream first then posted it...
Dextroamphetamine asked 22/11, 2019 at 14:27
3
Solved
When working with binary streams (i.e. byte[] arrays), the main point of using BinaryReader or BinaryWriter seems to be simplified reading/writing of primitive data types from a stream, using metho...
2
Solved
I know I have to cancel Stream Subscriptions when I no longer want to receive any events.
Do I have to this even after I receive a 'Done' event? Or do I get memory leaks?
What happens to Streams t...
1
Solved
I create a new Duplex stream like this
const Duplex = require('stream').Duplex;
let myStream = new Duplex()
Via a Websocket I receive chunks/buffer which I add to the stream like this every time...
Lammers asked 7/11, 2019 at 11:31
3
Solved
I have always wondered what the best practice for using a Stream class in C# .Net is. Is it better to provide a stream that has been written to, or be provided one?
i.e:
public Stream DoStuff(...)...
Resistor asked 22/3, 2015 at 21:32
3
Solved
I'm trying to cancel an interval (interval_timer) after emptying a queue but not sure what is the right strategy.
let mut some_vars = vec![1, 2, 3, 4, 5, 6, 7, 8];
let interval_timer = tokio_timer...
Confiscatory asked 12/3, 2018 at 12:57
4
Solved
The Google I/O 2018 video about Flutter explains how to use Dart streams to manage state in a Flutter application. The speaker talked about using Sink as input stream and Stream as output stream. W...
1
Solved
I've looked everywhere and I still can't figure it out. I know of two associations you can make with streams:
Wrappers for backing data stores meant as an abstraction layer between consumers and ...
Nonpros asked 4/11, 2019 at 20:17
3
Solved
Suppose I have some StringIO (from cStringIO). I want to read buffer from it until some character/byte is encountered, say 'Z', so:
stringio = StringIO('ABCZ123')
buf = read_until(stringio, 'Z') #...
Suchlike asked 26/11, 2011 at 16:25
1
Solved
I'm writing a method which asynchronously writes separate lines of text to a file. If it's cancelled it deletes the created file and jumps out of the loop.
This is the simplified code which works f...
Czarism asked 4/11, 2019 at 15:26
5
I'm using Firestore database to store a list of objects. To retrieve them I use the Stream provided by the Firestore package, like this:
class FirestoreApi implements Api {
FirestoreApi._();
s...
Starinsky asked 29/10, 2019 at 20:27
1
Solved
I have two Fluxs one for successful elements another one holding the erroneous elements
Flux<String> success= Flux.just("Orange", "Apple", "Banana","Grape", "Strawberry");
Flux<String>...
Bidle asked 29/10, 2019 at 11:29
10
I have a StreamReader object that I initialized with a stream, now I want to save this stream to disk (the stream may be a .gif or .jpg or .pdf).
Existing Code:
StreamReader sr = new StreamReader...
2
Solved
I'm following this Route_Guide sample.
The sample in question fires off and reads messages without replying to a specific message. The latter is what i'm trying to achieve.
Here's what i have so ...
2
Solved
I read the following post with interest as it is an exact replica of the problem I am experiencing (and driving me insane)
"For request in operation UploadFile to be a stream the operation must hav...
© 2022 - 2024 — McMap. All rights reserved.