Exemplo n.º 1
0
        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();
            }
        }