How to convert Java.IO.FileInputStream to System.IO.Stream in Xamarin android ?

i am using CloudRail NUGET in project, in which"" , System.IO.Stream ,Length,bool) function need second parameter type. But i want to pass Java.IO.FileInputStream, like;
(System.IO.Stream)new Java.IO.FileInputStream(new Java.IO.File("path"))

I am not using c# stream because of i am porting progress function from android project, but the case stuck here on casting of Stream.
if anyone know about Please replay answer.
Or alternative is code for get file upload progress in c# ,i implement same as java but did't work

Sign In or Register to comment.