Xamarin Forms - Open File As Stream
This might be a very simple question but I'm always confused when we're talking about streams. I'm trying to open a file in my Xamarin Forms project in the Android part of it. I ha
Solution 1:
You should be able to just use the StreamReader
class from System.IO. Sample code could look something like this:
FileStreamfs=newFileStream("photo.jpg", FileMode.Open, FileAccess.Read);
StreamReaderr=newStreamReader(fs);
Don't forget to dispose them after you are done.
For more detail on how to upload to Azure containers, check out the Xamarin documentation.
Post a Comment for "Xamarin Forms - Open File As Stream"