Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
private async Task
DownloadPdfFileAsync() { var filePath = Path.Combine(FileSystem .AppDataDirectory, "CifradoEnRedes_122017.pdf"); if (File.Exists(filePath)) { return filePath; } var httpClient = new HttpClient(); var pdfBytes = await httpClient.GetByteArrayAsync("https://1drv.ms/b/s!AtMYJuNNyNicilx0lIqs4Za0F9UA?e=T8uc1V"); try { File.WriteAllBytes(filePath, pdfBytes); return filePath; } catch (Exception ex) { await Application.Current.MainPage.DisplayAlert("Error", ex.Message, "Ok"); } return null; } private async void Btn2Click(object sender, EventArgs e) { App.MasterDet.IsPresented =false; await App.MasterDet.Detail.Navigation.PushAsync(new DISPERSION()); var filePath = await DownloadPdfFileAsync(); if (filePath != null) { await Launcher.OpenAsync(new OpenFileRequest { File = new ReadOnlyFile(filePath) }); } }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)