As Sharon mentioned, this code doesn't compile. Response; — Jeremy Wiggins. Show 10 more comments. Berezh Berezh 9 9 silver badges 12 12 bronze badges. Although this seem to be simple and works fine, but you need to keep in mind that this solution loads the file into your computer Memory. Therefore chances you get an exception due to insufficient memory is high when either 1 a data is too large or 2 multiple request are being made simultaneously.
Benjamin, That problem can be mitigated by using HttpClient instead. ReadToEnd ; sr. CodeChops CodeChops 1, 1 1 gold badge 20 20 silver badges 27 27 bronze badges. Example: link but this method doesn't work, any idea is appreciated. Resonse and just used Http. Tingo Tingo 6 6 silver badges 11 11 bronze badges. I stripped Dalla's answer a bit. I'm posting my version below — Ricardo Appleton. If you are looking for a. NET Core version of Dallas's answer, use the below. Add "Content-Length", fileResp.
Andreas Paulsson Andreas Paulsson 7, 3 3 gold badges 23 23 silver badges 30 30 bronze badges. So what was missing was: Response. Oliver Fink Oliver Fink 1. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Introduction In a previous article I showed an example in which a file was created from a memory stream and sent back to the browser as a text file via an ASP. Summary As you can see, this solution is pretty straight forward. Next Recommended Reading. Windows 10 Vs Windows Visual Studio Vs Visual Studio Getting Started With.
NET 6. C Evolution. Understanding Matplotlib With Examples. Understanding Numpy With Examples. Understanding Pandas With Examples. Ian Ian Thanks a lot for your fast response, Ian :- I found this one as well: support.
I'll have a go at it! Octet; Response. Write buffer, 0, read ; Response. Delete path ; Response. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Linked 3. Related
0コメント