Questions tagged [responsestream]
19 questions
5
votes
2 answers
Copy file from remote server to client browser via my server without writing the entire file to disk or memory
This is the scenario.
There is a file on a remote file server (say I have a file hosted on DropBox)
I want to offer that file as a download on my web application (c# asp.net 4.0)
I want to hide the location 100% of the original file (I want it to…

user1260249
- 115
- 8
3
votes
5 answers
Lengthy lines of code vs readability
This is perfectly fine C# code and works fine provided correct URL. But the everything is just done at one line by reducing the readability of the code.
Here is the code :
return new…

Shiva
- 1,379
- 1
- 15
- 32
1
vote
0 answers
Zipping several CSV files on server using StreamingResponse in Python
I am trying to create a Zip File via the StreamingResponse (so it will not be saved locally) on my server to send to the Frontend. The Zip file will contain CSV files which are converted from several Dataframes. So far I am getting the Zip file…

Alon Golombek
- 19
- 3
1
vote
1 answer
Rest template read response as stream and pass to spring controller(Get InputStream with rest Template)
I have a url which download the large size zip file.It returns the response as stream.though file size is large first it returns 200(HTTPSTATUK.OK) and continues download.
I have to implement a new spring controller which call the above url through…

vijay b
- 459
- 1
- 13
- 30
1
vote
0 answers
C# Grpc Server-side streaming RPC. The client received the first message only with the second one
I am trying to implement server-side streaming rpc to send messages from server to client.
rpc CheckSystem(CheckSystemRequest) returns (stream CheckSystemResponse) {}
Server code:
public override Task CheckSystem(CheckSystemRequest request,…

SLavaLL
- 31
- 3
1
vote
0 answers
How to stream Http response with custom response formatter?
I have a REST controller that streams the response in csv format using a helper method like below:
public static void CsvStreamHelper(IEnumerable data, Stream stream)
{
using (var writer = new StreamWriter(stream))
{
foreach (var…

kovac
- 4,945
- 9
- 47
- 90
1
vote
1 answer
How to read Arabic characters from HttpWebResponse in C#
I'm trying to read my firebase database in C# Application, I'm using HttpWebRequest and response to get the data.
the data in firebase is in Arabic language, when I fetch it in C# Application I see ?????? instead
my code:
static void Main()
{
…

AndroidDev
- 101
- 1
- 1
- 9
1
vote
1 answer
405 (POST not allowed) HttpException when trying to apply HttpResponse.Filter
We are getting a 405 error and the following exception from IIS7 when attempting to apply a ResponseStreamFilter to HttpResponse.Filter:
HttpException:
The HTTP verb POST used to access path '/app/Thing.asmx/Command' is not allowed.
We are…

Calvin Fisher
- 4,653
- 5
- 36
- 47
1
vote
2 answers
C# httpwebrequest blank chars in responsestream
I'm trying to read the reponse from a webserver using httpwebrequests in C#.
I use the following code:
UriBuilder urib = new UriBuilder();
urib.Host = "wikipedia.com";
HttpWebRequest req = WebRequest.CreateHttp(urib.Uri);
req.KeepAlive =…

Martinnj
- 579
- 1
- 5
- 21
0
votes
1 answer
Error with WCF REST (POX) Client when 201 Created and No Response Content
I am creating a WCF POX proxy using the generic ClientBase base class against a fixed specification.
The specification has items created with a POST call to an endpoint. With no body response packet and header status of (201 Created) and the ID of…

Steven Pardo
- 440
- 2
- 11
0
votes
1 answer
streaming response from Lambda with InvokeWithResponseStreamCommand
I have the following code in a react-native app that calls a Lambda in my AWS tenant. The Lambda fires just fine, all the console.logs come out correct (200, correct content-type, etc.), and I can also see the response from the Lambda in CloudWatch,…

Carlo
- 25,602
- 32
- 128
- 176
0
votes
0 answers
Can we achieve response streaming using an AWS ALB or NLB
We are building a flask application wherein for a specific request we want to be able to stream the response to the client.
Something like this
@app.route("/time/")
def time():
def streamer():
while True:
yield…

Raam
- 10,296
- 3
- 26
- 27
0
votes
2 answers
How to get content of httpWebresponse in proper string form?
Sometimes I am getting kind of garbled response from several web sites.
Here is my code:
Stream responseStream = response.GetResponseStream();
buffer = new Byte[256];//
int bytesRead;
while ((bytesRead = responseStream.Read(buffer, 0,…

purvang
- 339
- 4
- 6
- 15
0
votes
1 answer
Laravel 5.8 StreamDownload File Attachment Redirecting Instead of Downloading
I think I'm making a mistake that I'm not seeing in my Laravel controller. I have JSON data that I want to spit into a CSV, and then download that file in the browser.
I'm submitting a form with hidden inputs to POST data to the server, running…

RoboBear
- 5,434
- 2
- 33
- 40
0
votes
1 answer
File download in chunks in http-context response C#
I have a below scenario.
Client send request to Server-1 for file download
Server-1 send request to Server-2 for file.
To make this work I need to create a mechanism where once client send request to the Server-1, Server-1 will request to Server-2…

Krunal Zala
- 1
- 2