Skip to main content

All Questions

Tagged with
1 vote
1 answer
32 views

System.Text.Json.JsonSerializer does not overwrite existing file fully when using file stream

Consider the following code: internal class Program { static async Task Main(string[] args) { var t = new Thing() { Name = "Some Long Name" }; string path = @"c:\...
rory.ap's user avatar
  • 34.8k
0 votes
0 answers
33 views

Kafka Streams in .Net - Implementing IConsumerRebalanceListener

We have used Streamiz.Kafka.Net .Net package to create our Kafka Stream Application which read a source topic, transform the data and write the enriched data into another topic. We want to make sure ...
Nataraj Vedula's user avatar
0 votes
2 answers
242 views

Efficient string replace in a stream

I need to replace a string in a streaming http response. The naive way of doing that would be using var reader = new StreamReader(input, leaveOpen: true); var original = await reader.ReadToEndAsync(); ...
Lodewijk's user avatar
  • 2,393
0 votes
0 answers
46 views

Why is my Multipart Form not working when sent from .NET Framework 4.6.2?

I currently have 2 APIs. One is in .NET Framework 4.6.2 and one is in .NET 8. I'm trying to upload files and metadata as form-data though the .NET Framework API to the .NET 8 API. When uploading form-...
Sean Poston's user avatar
0 votes
0 answers
36 views

Convert from IObservable<byte> to Stream?

I was looking to convert from IObservable<byte> to Stream and came up with this code that uses System.IO.Pipelines.Pipe. public static Stream ToStream(this IObservable<byte> observable, ...
SuperJMN's user avatar
  • 13.8k
0 votes
0 answers
73 views

In C# HttpResponse, when does the response stream starts to be sent to the client?

I am using streams in my http response and was wondering when the stream starts to be sent to the client that sent the request. I thought it was sent when the response was returned but one of my ...
Sacha Bittner's user avatar
1 vote
0 answers
73 views

Implementing Oneway Grain to Grain Media Streaming with Different Nodes and Silos in the Same Cluster

Description: I'm trying to implement a one-way grain to grain media streaming system using Orleans, where the sender and receiver grains are located on different nodes and silos within the same ...
varmint's user avatar
  • 11
0 votes
0 answers
67 views

I want to find a way to c# CopyToAsync source code Link;

I want to find a way to c# : public System.Threading.Tasks.Task CopyToAsync (System.IO.Stream destination, System.Threading.CancellationToken cancellationToken); source code link. The reason is that ...
Sheldon_XiTong's user avatar
2 votes
2 answers
81 views

Read stream from EventStore without "stream doesn't exist exception"

Application written in .net tries to read event stream. For this goal, EventStoreCleint wrapper was written, under the hood it uses EventStore.Client.Grpc.Streams 23.1.0. The logic is the following: ...
Maxim Kitsenko's user avatar
0 votes
0 answers
43 views

CopyTo HttpWebRequest stream creates memory increasing

I have a WCF Rest Post function (WebInvoke) that gets from the webclient stream of data (From Javascript File API) and sends this stream to another server by using HttpWebRequest. When there are lots ...
Programmer's user avatar
0 votes
2 answers
69 views

How to convert a Png or Jpeg to Tiff?

I'm trying to convert a Png or Jpg file to Tiff format. Here is my code: ' If png or jpeg, then convert to Tiff If aFName.ToUpper.EndsWith(".PNG") OrElse aFName.ToUpper.EndsWith(&...
navigator's user avatar
  • 1,700
0 votes
1 answer
246 views

How to live stream audio on a mobile application and output to a external speaker in real time (C# .NET MAUI)

I am tasked to create a mobile app funtionaluty where users can live stream voice to be outputted onto the external IP Speaker. (HIKVISION IP SPEAKER DS-PA0103-B). https://www.hikvision.com/uk/...
x3boffi's user avatar
1 vote
2 answers
654 views

Writing to stream with simultaneous sending to HTTP controller in .NET

We have a Server API endpoint that can read HTTP Body as a Stream and parse it to very large collection of our entities. We implemented parsing of stream using JsonTextReader (Newtonsoft.Json package)....
Alexander I.'s user avatar
  • 2,584
0 votes
0 answers
64 views

How to create a Stream out of IObservable<byte>?

I've been thinking how to create a bridge between IObservable<byte> and Stream, but I'm completely lost. The use case for this is when a function needs you to provide a Stream, but you have your ...
SuperJMN's user avatar
  • 13.8k
0 votes
2 answers
146 views

Is any blocking Read method available for Stream?

I am writing an application in C# to open a terminal to a Docker container remotely via a web application. I need to read the stream returned by the Docker.NET client and forward the read bytes via a ...
SupaCoda's user avatar

15 30 50 per page
1
2 3 4 5
44