stream Questions

1

In my app users can download a file as a stream from the backend which is a spring boot application, here's the backend code: @RequestMapping(value = "/download", method = RequestMethod.GET) publi...
Spindlelegs asked 19/11, 2018 at 11:8

4

Is it possible to redirect RTMP protocol to another RTMP stream? If yes, How can i do it? In details: Ex: I got rtmp://mydomain.com/stream/redirect and i want this to redirect or fetch cont...
Bimolecular asked 27/5, 2013 at 16:25

3

Solved

I'm having an issue with copying data from a MemoryStream into a Stream inside a ZipArchive. The following is NOT working - it returns only 114 bytes: GetDataAsByteArray(IDataSource dataSource) { ...
Airlia asked 4/8, 2014 at 15:29

1

Solved

TL;DR I'm browsing through a number of solutions on npm and github looking for something that would allow me to read and write to the same file in two different places at the same time. So far I'm...
Jaundiced asked 28/9, 2018 at 19:38

2

I have a program that takes in mp3 data in a byte array. It has to convert that mp3 data into wav format and store it in a byte data. I am trying to use NAudio for this purpose. I am using the foll...
Chrestomathy asked 16/7, 2012 at 7:59

2

I see this method in use in many cases but I cannot understand what it does. An example: var net = require('net'); var server = net.createServer(function(connection) { console.log('client conne...
Apache asked 3/11, 2018 at 10:53

9

Solved

I have the following constructor method which opens a MemoryStream from a file path: MemoryStream _ms; public MyClass(string filePath) { byte[] docBytes = File.ReadAllBytes(filePath); _ms = new...
Pasteboard asked 9/7, 2010 at 12:51

8

Solved

I am not able to flush stdin here, is there a way to flush it? If not then how to make getchar() to take a character as input from user, instead of a "\n" left by scanf() in the input buffer?? #in...
Steamship asked 5/9, 2009 at 19:20

1

Does someone know of a way to create a new Response from a ReadableStream in Microsoft Edge? For Chrome, this is quite simple. You can just take a ReadableStream and pass it in the constructor of ...
Mariquilla asked 13/3, 2018 at 8:31

2

Solved

I am sending a message to a service bus topic using the logic app action "Send Message". When reading it in a console application, if i do this: SubscriptionClient subClient = SubscriptionClient....

2

Solved

How lightweight are operations for creating and destroying CUDA streams? E.g. for CPU threads these operations are heavy, therefore they usually pool CPU threads. Shall I pool CUDA streams too? Or ...
Jacky asked 17/6, 2018 at 10:25

1

I want to send a video stream from an iOS device (version 11 and above) to a server (from a client using html5 on iOS). For other browsers I get the stream from navigator.getUserMedia, and pass it ...
Technetium asked 18/1, 2018 at 11:54

6

Solved

I have an application that uses the bluetooth to receive some data (bytes) from other device. everything is going well, but I have a small issue on receiving the bytes all together. After receiving...
Continuo asked 10/2, 2012 at 16:56

1

Solved

I am trying to understand input and output files in C. In the beginning, when we want to open a file to read, we declare a file pointer as follows: FILE *fptr1 = fopen( "filename", "r") I unders...
Flavin asked 14/10, 2018 at 18:7

2

Solved

How can I serialize an object into json and return it as a stream? I have tried: using (var stream = new MemoryStream()) using (var streamWriter = new StreamWriter(stream)) using (var jsonWri...
Dour asked 10/10, 2018 at 20:19

5

Solved

I'm using FileOutputStream with PrintStream like this: class PrintStreamDemo { public static void main(String args[]) { FileOutputStream out; PrintStream ps; // declare a print stream object...
Madelynmademoiselle asked 10/11, 2011 at 14:0

1

Solved

I want to use streams like: List<String> result = myArr .stream() .filter(line -> !"foo".equals(line)) .collect(Collectors.toList()); but stop the filtering as soon as I have maximum...
Staciestack asked 9/10, 2018 at 13:39

2

I'm trying to find a way to avoid the IOException related to the fact that I read on a closed stream. I'm calling a webservice method that returns a Stream: InputStream stream = callRestWebServ...
Sidelong asked 14/6, 2013 at 12:23

5

Solved

I need for fast reading data from standard input stream of console. Input consist of 100.000 rows with 20 chars each (2 million chars); user paste it from clipboard. My procedure works for about 3 ...
Sleuth asked 26/10, 2015 at 9:28

2

Solved

In the stream tutorial, nothing is said about closing streams gained from Files.newInputStream( path ). Only some obscure: Whether the returned stream is asynchronously closeable and/or interru...
Brabble asked 20/1, 2015 at 14:52

3

I have a pointer to a const *char buffer as well as it's length, and am trying to use an API (in this case, the AWS S3 C++ upload request) that accepts an object of type: std::basic_iostream <c...
Hyponasty asked 3/1, 2017 at 17:1

4

Normally, to read characters from a byte stream you use a StreamReader. In this example I'm reading records delimited by '\r' from an infinite stream. using(var reader = new StreamReader(stream, E...
Overthrust asked 26/7, 2012 at 14:42

2

Solved

I am attempting to implement the Java.stream() method to multiple a list of numbers together in Java 8. I have imported the java.util.stream*; package. The static method is set to return an i...
Upstairs asked 21/9, 2018 at 3:20

3

Solved

I'm processing a binary stream and need to skip efficiently past a range of data that I'm not interested in, to some data that will be processed. InputStream.skip(long) doesn't make much in the wa...
Wingard asked 27/12, 2012 at 16:18

4

Now that the oligopole of market data providers successfully killed OpenQuant, does any alternative to proprietary and expensive subscriptions for realtime market data subsist? Ideally I wou...
Baiss asked 18/6, 2010 at 0:19

© 2022 - 2024 — McMap. All rights reserved.