async Task getCameraFile(MediaFile file) { if (file == null) { return; } CommonResult commonResult = await _server.AddFileApps(_requestInfo.ID.ToString(), getFileName(file.Path), StreamToByteArray(file.GetStream()), file.Path); if (commonResult == null) { await ShowToast(AppResources.SuccessFileSent); await RefreshData(); } }