All Questions
650
questions
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:\...
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 ...
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();
...
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-...
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, ...
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 ...
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 ...
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 ...
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:
...
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 ...
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(&...
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/...
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)....
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 ...
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 ...