Can anyone please help out with this?
I have seen related solutions here but most of them are referred on downloading the file from a url . There is no url for me. I get a byte from db (through a web service) and I want to download it on the device android / ios. I am using the MVVM pattern and I am trying to implement it from the ViewModel of my View.
File.WriteAllBytes(System.IO.Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "Data", myfile.txt), byteArray);
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies