コード例 #1
0
 /// <summary>
 /// Downloads this file from the Brick and returns this file as byte[]
 /// </summary>
 /// <returns>byte[] data of the file</returns>
 public async Task <byte[]> Download()
 {
     return(await SystemMethods.DownLoadFile(Brick.Socket, FilePath));
 }
コード例 #2
0
 /// <summary>
 /// Downloads a file from the Brick and returns file as byte[]
 /// </summary>
 /// <param name="brickFilePath">relative path to the file on the brick</param>
 /// <returns></returns>
 public static async Task <byte[]> DownloadFile(string brickFilePath)
 {
     return(await SystemMethods.DownLoadFile(Brick.Socket, brickFilePath));
 }