Skip to content

Instantly share code, notes, and snippets.

@gurvinderbini
Created February 28, 2017 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gurvinderbini/3d7eef17e9f8da7d3017b184eccd8189 to your computer and use it in GitHub Desktop.
Save gurvinderbini/3d7eef17e9f8da7d3017b184eccd8189 to your computer and use it in GitHub Desktop.
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