Created
February 28, 2017 16:05
-
-
Save gurvinderbini/3d7eef17e9f8da7d3017b184eccd8189 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class FPDemo : ContentPage | |
{ | |
public FPDemo() | |
{ | |
InitializeComponent(); | |
} | |
private async void Button_OnClicked(object sender, EventArgs e) | |
{ | |
try | |
{ | |
FileData fileData=new FileData(); | |
fileData = await CrossFilePicker.Current.PickFile(); | |
byte[] data = fileData.DataArray; | |
string name = fileData.FileName; | |
string filePath = fileData.FilePath; | |
} | |
catch (Exception ex) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment