I am using the SharpZip .NET Zip Library to unzip a file found in the Assets/MyZipFolder folder.
I need to get the full path so that I can use the following:
ZipInputStream s = new ZipInputStream(File.OpenRead(_zipFile))
How do I get the path to Assets/MyZipFolder/MyZip.zip to pass to a .NET File.OpenRead command?
From your Context you can simply open a read stream using:
Be careful that the file is marked as an
AndroidAssetfor build action, the absolute path is: “file:///android_asset” and remember that file names in android are case sensitive.