stream Questions

6

Solved

How do I convert struct System.Byte byte[] to a System.IO.Stream object in C#?
Milewski asked 19/1, 2011 at 14:8

7

Solved

Classes such as Stream, StreamReader, StreamWriter etc implements IDisposable interface. That means, we can call Dispose() method on objects of these classes. They've also defined a public method c...
Conflagrant asked 23/9, 2011 at 6:5

2

I am trying to so some processing on a IP Camera , and it works well, but I see a lag between the real world and the video capture in about 7~10 seconds. I am using the rtsp://@ip:port/live ext Thi...
Briney asked 19/8, 2020 at 9:59

10

Solved

Is there a way in C# to play audio (for example, MP3) direcly from a System.IO.Stream that for instance was returend from a WebRequest without saving the data temporarily to the disk? Solution w...
Carlettacarley asked 8/10, 2008 at 20:19

5

Solved

I serialize an array of large objects to a json http response stream. Now I want to deserialize these objects from the stream one at a time. Are there any c# libraries that will let me do this? I'v...
Glimpse asked 4/12, 2013 at 11:26

4

Solved

I am writing a java program to read the error stream from a process . Below is the structure of my code -- ProcessBuilder probuilder = new ProcessBuilder( command ); Process process = probuilder....
Leukocyte asked 16/10, 2012 at 6:28

3

Solved

how can I create std::ostream and std::istream objects to point to a piece of memory I allocated and manage (I don't want the stream to free my memory). I was looking at using rdbuf()->pubsetbuf...
Orthoptic asked 24/4, 2009 at 16:14

5

I'm new to Java streams, I would like to read a specific files content then need to read it from the beginning. I have created a BufferedInputStream and i'm confused about the documentation of Buff...
Nunhood asked 22/2, 2017 at 10:55

2

Solved

Probably a basic question for those familiar with the topic. Consider the following toy program: const fs = require('fs'); process.stdout.on('data', (chunk) => { fs.writeFileSync('myfile.txt'...
Finbar asked 9/12, 2021 at 15:2

5

MediaPlayer.isPlaying() does not allow to know if the MediaPlayer is stopped or paused. How to know if it is paused and not stopped? Thanks !
Instrument asked 4/3, 2014 at 9:25

6

Solved

I'm trying to use file_get_contents together with stream_context_create to make POST requests. My code so far: $options = array('http' => array( 'method' => 'POST', 'content' => $data,...
Extemporize asked 25/3, 2013 at 16:37

3

Solved

I was reading about AWS Kinesis. In the following program, I write data into the stream named TestStream. I ran this piece of code 10 times, inserting 10 records into the stream. var params = { D...
Auric asked 23/1, 2018 at 10:52

5

Is there a simple way to insert something at the beginning of a text file using file streams? Because the only way I can think of, is to load a file into a buffer, write text-to-append and then wri...
Hendon asked 10/1, 2011 at 22:53

2

I have a stream that holds string values and i want to get the last value in that string. what's the best way to do it? Stream<String> get searchTextStream { return _searchController.strea...
Humiliating asked 2/2, 2019 at 10:9

3

Solved

I have a program I'm writing that I want to write a custom logging facility for (e.g. diagnostic, notice, warning, error). Should I be using the stdout or the stderr stream to do this? It is an in...
Frontogenesis asked 7/2, 2011 at 7:57

2

Solved

I try downloading files with the fetch() function from github. Then i try to save the fetched file Stream as a file with the fs-module. When doing it, i get this error: TypeError [ERR_INVALID_ARG_...
Upward asked 12/8, 2022 at 18:20

7

Solved

I´m new in the bloc pattern and stream stuff. I want to show up an alert dialog when I press a button, but I can´t find a way to do it. Actually my code is: Widget button() { return RaisedButton(...
Cholla asked 19/11, 2018 at 8:26

4

Solved

I want to read unsigned bytes from a binary file. So I wrote the following code. #include <iostream> #include <fstream> #include <vector> #include <istream> std::string fi...
Polyzoic asked 2/3, 2009 at 23:0

2

Below I try to respond with a stream when I receive ticker updates. +page.server.js: import YahooFinanceTicker from "yahoo-finance-ticker"; const ticker = new YahooFinanceTicker(); const...
Dwarfish asked 5/11, 2022 at 17:57

6

I am trying to trigger an AWS lambda function written in Java, on dynamodb stream events. Amazon has a guide for the same, using NodeJS here http://docs.aws.amazon.com/lambda/latest/dg/wt-ddb-creat...

4

Solved

I'm trying to convert some video file containing video, audio and subtitles streams into another format using FFMpeg. However, ffmpeg complains about the subtitles format - it cannot decode the str...
Gouache asked 26/8, 2012 at 16:27

4

Solved

I'm searching a way to get the base64 string representation of a PDFKit document. I cant' find the right way to do it... Something like this would be extremely convenient. var doc = new PDFDocume...
Sakhuja asked 25/8, 2016 at 13:51

4

Solved

I have difficulties in understanding the sequence of calls in the code below. I was expecting to see the output below A1B2 While I can see that the output I get is BA12 I thought that the c...
Flight asked 11/2, 2013 at 10:11

6

Solved

I'm using a library that requires I provide an object that implements this interface: public interface IConsole { TextWriter StandardInput { get; } TextReader StandardOutput { get; } TextReader...
Nice asked 25/9, 2009 at 6:33

11

Solved

I have two (2GB each) files on my harddisk and want to compare them with each other: Copying the original files with Windows explorer takes approx. 2-4 minutes (that is reading and writing - on t...
Bryner asked 8/6, 2009 at 10:54

© 2022 - 2024 — McMap. All rights reserved.