stream Questions
1
Solved
I need to send a pdf to an api with formData.
I download the pdf which when logged look like this: <Buffer 6d 61 67 65 49 2f ... >
If I fs.writeFileSync it is perfectly readable.
But I want t...
Moskow asked 7/12, 2017 at 10:57
7
Solved
What are the options to read/write files in .Net Core?
I am working on my first .Net Core app and looking for
File.Read*/File.Write* functions (System.IO from .Net) alternatives.
5
Solved
I could use:
File.open('/dev/null', 'w')
on Unix systems, but if there is a Ruby way to achieve this, I'd like to use it. I am just looking for an I/O stream, that immediately "trashes" ...
2
Solved
I have a Raspberry Pi board with dedicated camera that records video only in h264. I am looking for the best method to stream and play recorded video in real-time (as in, less than 1 sec delay) in ...
Environment asked 28/6, 2014 at 14:15
1
Solved
I tried the following codes:
class MyListener(StreamListener):
def on_data(self, data):
print(data)
return True
listener = MyListener()
auth = OAuthHandler(config.API_KEY, config.API_SECRET...
1
I'm trying to read an HTML table and get all the values into a 2d list using selenium. I'm using streamable to create a List inside another map() method. But I get Cannot cast from List<Function...
Chocolate asked 16/8, 2019 at 7:50
6
Solved
I have a BehaviorSubject that I would like to reset - by that I mean I want the latest value to not be available, just as if it was just created.
I don't seem to see an API to do this but I suppos...
Spunky asked 30/8, 2017 at 12:12
1
Solved
I have created a buffer from a file which can be pdf, jpg or any other format. Now I want to detect if the buffer is of the pdf file or any other file.
request({ url, encoding: null }, (err, resp...
Circumnutate asked 8/8, 2019 at 6:36
2
Solved
I have 2 Streams that I need to combine to build a widget, but unlike other questions I have seen I need to nest my streams.
I have a stream that gets a collection of documents from Firestore, and ...
Cranston asked 1/8, 2019 at 14:38
1
At the moment, gRPC service definitions can only have a single parameter even if it’s a streaming service which makes challenging to represent the “initial” request. For instance, consider a chat a...
Egghead asked 28/7, 2019 at 6:58
2
Solved
i m working a small program that i can write a list into json file so i created two instance of Dealer class and then added it to the "dealerList".
I've tried to write into the json file named "De...
1
Solved
I'm currently using a not-very-Scala-like approach to parse large Unix mailbox files. I'm still learning the language and would like to challenge myself to find a better way, however, I do not beli...
2
Solved
I'm trying to serve image data stored in a VARBINARY(MAX) field in the database using ASP.Net. Right now, the code is filling a data table, then pulling the byte array out of the DataRow and pushin...
3
Solved
I am reading a file (line by line) full of Swedish characters like äåö but how can I read and save the strings with Swedish characters. Here is my code and I am using UTF8 encoding:
TextReader tr ...
Runyan asked 13/12, 2012 at 0:39
0
Consider the task of fetching a limited amount of data from a (w.r.t memory) infinite source, e.g. I need to fetch counts from an huge table consisting of billions and more entries, labeled by time...
Equivalency asked 9/7, 2019 at 14:36
4
In Node.js I'm using the fs.createWriteStream method to append data to a local file. In the Node documentation they mention the drain event when using fs.createWriteStream, but I don't understand i...
Sponsor asked 21/9, 2013 at 12:17
3
Solved
I want to convert a Stream of a Map<> into a String, to append it to a textArea. I tried some methods, the last with StringBuilder, but they don't work.
public <K, V extends Comparable<? ...
Mcginley asked 4/7, 2019 at 10:10
4
Solved
In C#, I almost always use the using pattern when working with stream objects. For example:
using (Stream stream = new MemoryStream())
{
// do stuff
}
By using the using block, we ensure that d...
4
Solved
The Stream docs state that Duplex Streams "are streams that implement both the Readable and Writable interfaces" and Transform Streams "are Duplex streams where the output is in some way computed f...
2
Is there a way in C++ to tell if std::cout and std::cerr are pointing to the same destination?
That is, I'd like to be able to distinguish when the program is launched like
program or program &g...
1
2
I can't figure out how to provide a Stream where I await async functions to get the data needed for the values of the stream.
I've tried to implement the the Stream trait directly, but I run into ...
Exegetic asked 22/6, 2019 at 23:51
2
The above exception occurs at line await bitmapImage.SetSourceAsync(fileStream); whenever I tried to retrieve image from local file.
This is the method I'm using for storing and retrieving the ima...
Unreconstructed asked 16/5, 2015 at 8:8
3
Solved
I have a large dataset (~1GB) stored in a custom file format, the last 16 bytes of which is an MD5 hash of all previous bytes of the file.
I want to verify the MD5 of this file against the embedde...
7
Solved
I am trying to get the OutputStream of the Process initiated by exec() to the console. How can this be done?
Here is some incomplete code:
import java.io.BufferedReader;
import java.io.File;
impo...
Benedikt asked 14/10, 2010 at 17:51
© 2022 - 2024 — McMap. All rights reserved.