/// <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)); }
/// <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)); }