Archived Forum Post

Index of archived forum posts

Question:

HTTP Download to Stream?

Aug 25 '16 at 10:39

Any possibility of getting a method added to download to a stream?

We have the need to proxy a download from one of our internal servers to an external request.

Need to be able to do something like the following:

bool success = chilkatDownload.Download(webPath, Response.OutputStream);


Answer

Using the Chilkat REST API is the best way to do it. Here is an example:

Android: HTTP Download to Stream

Classic ASP: HTTP Download to Stream

C: HTTP Download to Stream

C++: HTTP Download to Stream

C#: HTTP Download to Stream

C# UWP/WinRT: HTTP Download to Stream

DataFlex: HTTP Download to Stream

Delphi ActiveX: HTTP Download to Stream

Delphi DLL: HTTP Download to Stream

.NET Core C#: HTTP Download to Stream

Visual FoxPro: HTTP Download to Stream

Java: HTTP Download to Stream

Lianja: HTTP Download to Stream

MFC: HTTP Download to Stream

Mono C#: HTTP Download to Stream

Node.js: HTTP Download to Stream

Objective-C: HTTP Download to Stream

Perl: HTTP Download to Stream

PHP ActiveX: HTTP Download to Stream

PHP Extension: HTTP Download to Stream

PowerBuilder: HTTP Download to Stream

PowerShell: HTTP Download to Stream

PureBasic: HTTP Download to Stream

Python: HTTP Download to Stream

Ruby: HTTP Download to Stream

SQL Server: HTTP Download to Stream

Swift: HTTP Download to Stream

Tcl: HTTP Download to Stream

Unicode C: HTTP Download to Stream

Unicode C++: HTTP Download to Stream

Visual Basic 6.0: HTTP Download to Stream

VB.NET: HTTP Download to Stream

VB.NET UWP/WinRT: HTTP Download to Stream

VBScript: HTTP Download to Stream

Xojo Plugin: HTTP Download to Stream


Answer

Also, to integrate with System.IO.Stream (in .NET), use the Chilkat.StreamConnector object. Here's an example:

C#: https://www.example-code.com/csharp/stream_connector_cs.asp
VB.NET: https://www.example-code.com/vbnet/stream_connector_vbnet.asp