stream Questions

1

Solved

is it possible to do simple simple modification to this ? the goal if to "draw" the html as it's being received. possible scenario : a php that takes 5 to 8 seconds to execute, and push e...
Athena asked 6/6, 2021 at 2:28

2

Solved

What event is triggered when EOF is reached while writing to a stream ? My code is as follows. and it is as per http://docs.nodejitsu.com/articles/advanced/streams/how-to-use-fs-create-write-stream...
Blueweed asked 31/10, 2012 at 10:53

3

Solved

This is a little more tricky than I first imagined. I'm trying to read n bytes from a stream. The MSDN claims that Read does not have to return n bytes, it just must return at least 1 and up to n ...
Cryostat asked 22/9, 2011 at 11:36

2

Solved

My issue here is that I have a stream pipeline set up like. readableStream.pipe(transformStream).pipe(writableStream); I don't really want the writable stream to write anywhere, I'm just using i...
Alcaraz asked 2/9, 2015 at 17:25

4

Solved

I have a method that takes FileStream as input. This method is running inside a for loop. private void UploadFile(FileStream fileStream) { var stream = GetFileStream(); // do things with stream }...
Bulganin asked 17/8, 2015 at 19:35

4

Solved

fetch() returns promise which (if successful) resolves to a Response object. A very common thing to do is immediately call Response.json() to convert the response body to a JSON object. If the res...
Internecine asked 8/11, 2016 at 22:57

2

Solved

I need to process a large remote CSV line by line without downloading it entirely. Below is the closest I got. I iterate byte chunks from Azure, and have some code to handle truncated lines. But th...
Dedicated asked 12/5, 2021 at 16:2

3

I am having some problems with setting up a request-stream type gRPC architecture. The code below is just for testing purposes and it is missing various validation checks, but the main issue is tha...
Yarbrough asked 12/3, 2020 at 20:26

7

Solved

I want to store received email attachment with usage of paperclip. From email I get part.body and I have no idea how to put it to paperclip'ed model. For now I create temporary file and write port....
Weekley asked 2/3, 2011 at 11:24

1

I see some modules that pipe readable streams in writable streams, and if any error occurr, they use the destroy method: const readable = fs.createReadStream("file"); const writable = fs.createWri...
Longeron asked 30/3, 2017 at 14:0

2

Solved

I donwnload a stream with RestSharp by using the ResponseWriter. var client = new RestClient var request = new RestRequest(); // ... request.ResponseWriter = (ms) => { // how to detect the sta...
Manofwar asked 9/10, 2014 at 7:55

6

Solved

I have a readonly System.IO.Stream implementation that is not seekable (and its Position always returns 0). I need to send it to a consumer that does some Seek operations (aka, sets the Position) o...
Warbler asked 23/10, 2012 at 17:22

4

Solved

my android app streams a video online in a VideoView. When playing a video from a file, it works fine, or even streaming live (an m3u8); It's always streaming from the same source, and when I use a...
Firedrake asked 13/10, 2016 at 16:39

6

Solved

Is there an elegant to emulate the StreamReader.ReadToEnd method with BinaryReader? Perhaps to put all the bytes into a byte array? I do this: read1.ReadBytes((int)read1.BaseStream.Length); ......
Kowalski asked 23/12, 2011 at 7:5

2

It is simple to get a StorageStreamDownloader using the azure.storage.blob package: from azure.storage.blob import BlobServiceClient blob_service_client = BlobServiceClient.from_connection_string(...
Volley asked 4/2, 2021 at 13:10

2

Solved

I consider replacing Stream-based IO in our application with System.IO.Pipelines to avoid unnecessary memory allocation (considered first RecyclableMemoryStream but it seems to be discontinued). Bu...
Ileneileo asked 16/12, 2018 at 11:10

3

In Powershell, we can combine the standard output stream with any other stream and then redirect (write) the result to the same file. Examples: Powershell -File "C:\myscript.ps1" 2>&1&gt...
Hymnal asked 18/6, 2015 at 4:15

1

Solved

I want to get a Readable form a Blob. import {Readable} from 'stream'; const data: Blob = new Blob( ); const myReadable: Readable = (new Readable()).wrap(data.stream()); myReadable.pipe(ext); I g...
Joannajoanne asked 28/8, 2020 at 8:24

16

Solved

With reference to the following thread: Java App : Unable to read iso-8859-1 encoded file correctly What is the best way to programatically determine the correct charset encoding of an inputstream...
Detect asked 31/1, 2009 at 15:34

16

Solved

With reference to the following thread: Java App : Unable to read iso-8859-1 encoded file correctly What is the best way to programatically determine the correct charset encoding of an inputstream...
Greenockite asked 31/1, 2009 at 15:34

4

Solved

In my previous post, we found a way to pass an image file from one Python script to another: pass video data from one python script to another I am now trying to pass a video (successive images): w...
Bywaters asked 24/2, 2021 at 15:29

2

Solved

I used this code from here to try to call a REST Controller method on a Web API server app from a Compact Framework client: public static void SendXMLFile3(string uri, string data) { WebRequest r...
Lightish asked 8/9, 2014 at 17:59

2

I have pdf file encoded as base64 string. How to download this string to the browser as file in .pdf format? What I have already tried: res.set('Content-Disposition', 'attachment; filename="filen...
Chlorella asked 17/2, 2015 at 18:44

4

Solved

I created a Vector class in C++ and it works great for my problems. I am now cleaning it up, and I ran into the following piece of code: std::ostream& operator<<(std::ostream &output...
Molybdenite asked 16/3, 2011 at 16:28

1

I need to be able to search all tcp streams that contain a particular string, not just a particular packet. Something like: tcp.stream contains "string" I need to do this in order to filter out a...
Injudicious asked 15/5, 2014 at 15:19

© 2022 - 2024 — McMap. All rights reserved.