I have same page on my website and on mobile app .
on website i use asp.net FileUpload control to upload file to server .
//saving the file
FileUpload1.SaveAs("<c:\\SaveDirectory>" + FileUpload1.FileName);
on mobile app i am search away to do that and using almost same code on upload file ..
i am using Xamarin.forms
I have object Image contains Image selected or picked and i have file path as following
public static Image DriverImage;
DriverImage = new Image();
DriverImage .Source = ImageSource.FromStream(() =>
{
var stream = file.GetStream();
file.Dispose();
return stream;
});
what i need to do here ?