Class HttpFileTransfer
Helper methods for downloading binary files.
Inheritance
System.Object
HttpFileTransfer
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class HttpFileTransfer : object
Methods
DownloadFile(String)
Downloads a file from the url. Decompresses using BZip2 if needed.
Declaration
public static Future<DataBuffer> DownloadFile(string url)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | url | The URL. |
Returns
| Type | Description |
|---|---|
| Future<DataBuffer> |
DownloadFile(String, String)
Downloads a file from the url. Decompresses using BZip2 if needed. Then saves to the file system at filePath.
Declaration
public static Future<object> DownloadFile(string url, string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | url | The URL. |
| System.String | filePath | The file path. |
Returns
| Type | Description |
|---|---|
| Future<System.Object> |