Class HttpFileTransfer
Helper methods for downloading binary files.
Inheritance
System.Object
HttpFileTransfer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class HttpFileTransfer
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> |